Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Services/Volume-control.vala
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ public class Sound.Services.VolumeControlPulse : VolumeControl {
this.notify_property ("micMute");
}

var listening = (i.state == PulseAudio.SourceState.RUNNING);
// If there is no input device, SourceInfo will correspond to the playback device, which we want to ignore.
// In that scenario, monitor_of_sink != INVALID_INDEX and monitor_of_sink_name is set.
var listening = i.state == PulseAudio.SourceState.RUNNING && i.monitor_of_sink == PulseAudio.INVALID_INDEX;
if (_is_listening != listening) {
_is_listening = listening;
this.notify_property ("is-listening");
Expand Down