mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 07:52:42 +01:00 
			
		
		
		
	fix(pulseaudio): check active_port is set
This commit is contained in:
		| @@ -89,7 +89,7 @@ void waybar::modules::Pulseaudio::sinkInfoCb(pa_context* /*context*/, | ||||
|     pa->volume_ = std::round(volume * 100.0f); | ||||
|     pa->muted_ = i->mute != 0; | ||||
|     pa->desc_ = i->description; | ||||
|     pa->port_name_ = i->active_port->name; | ||||
|     pa->port_name_ = i->active_port ? i->active_port->name : "Unknown"; | ||||
|     pa->dp.emit(); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexis
					Alexis