summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-mixer-dialog.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-08-20 19:05:27 +0200
committerinfirit <[email protected]>2014-10-09 16:53:01 +0200
commit1699403b1f771b6f9c66889d54b645baf46c7d4d (patch)
treeada74dad9e46233c8ab796774f31497eb9ec3ce6 /mate-volume-control/src/gvc-mixer-dialog.c
parent1f6448f52b7666a93aa28ec7dafd0d8944c45104 (diff)
downloadmate-media-1699403b1f771b6f9c66889d54b645baf46c7d4d.tar.bz2
mate-media-1699403b1f771b6f9c66889d54b645baf46c7d4d.tar.xz
Fix removing input/output streams
Diffstat (limited to 'mate-volume-control/src/gvc-mixer-dialog.c')
-rw-r--r--mate-volume-control/src/gvc-mixer-dialog.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/mate-volume-control/src/gvc-mixer-dialog.c b/mate-volume-control/src/gvc-mixer-dialog.c
index 1393024..b56dad9 100644
--- a/mate-volume-control/src/gvc-mixer-dialog.c
+++ b/mate-volume-control/src/gvc-mixer-dialog.c
@@ -1095,17 +1095,15 @@ remove_stream (GvcMixerDialog *dialog, const gchar *name)
GtkTreeIter iter;
GtkTreeModel *model;
- /* Remove bars for applications and reset fixed bars */
bar = g_hash_table_lookup (dialog->priv->bars, name);
- if (bar != dialog->priv->input_bar && bar != dialog->priv->output_bar)
- return;
-
- g_debug ("Removing stream %s from bar %s",
- name,
- gvc_channel_bar_get_name (GVC_CHANNEL_BAR (bar)));
+ if (bar != NULL) {
+ g_debug ("Removing stream %s from bar %s",
+ name,
+ gvc_channel_bar_get_name (GVC_CHANNEL_BAR (bar)));
- bar_set_stream (dialog, bar, NULL);
+ bar_set_stream (dialog, bar, NULL);
+ }
/* Remove from any models */
model = gtk_tree_view_get_model (GTK_TREE_VIEW (dialog->priv->output_treeview));
@@ -1149,7 +1147,6 @@ on_context_stream_removed (MateMixerContext *context,
const gchar *name,
GvcMixerDialog *dialog)
{
-
if (dialog->priv->hw_profile_combo != NULL) {
gboolean show_button;