diff options
author | Andrew Jorgensen <[email protected]> | 2018-07-09 12:08:21 -0700 |
---|---|---|
committer | monsta <[email protected]> | 2019-08-12 14:08:35 +0300 |
commit | db1ef0a5885ea4464f110abaf06efb1a75f15151 (patch) | |
tree | 803c952454b3465eb7637c1c7319a0b32abaff4c | |
parent | d5cbe65205222500bc5d99992d002464800a3fa8 (diff) | |
download | mate-media-db1ef0a5885ea4464f110abaf06efb1a75f15151.tar.bz2 mate-media-db1ef0a5885ea4464f110abaf06efb1a75f15151.tar.xz |
Ignore PulseAudio "monitor" inputs when displaying mic icon
Teradici PCoIP on Linux presently has audio output but no audio input.
PulseAudio creates a "monitor" input device for each output device. These
combine so that a microphone icon is displayed in the tray even though no
actual input device is present. It's misleading, so we created this patch to
avoid it.
-rw-r--r-- | mate-volume-control/gvc-applet.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-volume-control/gvc-applet.c b/mate-volume-control/gvc-applet.c index 686ee11..bcf64a3 100644 --- a/mate-volume-control/gvc-applet.c +++ b/mate-volume-control/gvc-applet.c @@ -79,6 +79,14 @@ update_icon_input (GvcApplet *applet) control = mate_mixer_stream_get_default_control (applet->priv->input); + const gchar *stream_name = + mate_mixer_stream_get_name (applet->priv->input); + g_debug ("Got stream name %s", stream_name); + if (g_str_has_suffix (stream_name, ".monitor")) { + inputs = NULL; + g_debug ("Stream is a monitor, ignoring"); + } + while (inputs != NULL) { MateMixerStreamControl *input = MATE_MIXER_STREAM_CONTROL (inputs->data); |