summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Sarakeev <sarakusha@gmail.com>2014-11-25 11:38:34 +0300
committerTim-Philipp Müller <tim@centricular.com>2014-12-11 14:19:41 +0000
commit35c40171933cae4969b13e258cc219047dd35952 (patch)
tree4ed6bf495e4a40d4139513e69e577be31f1cbf50
parent7a8461f0a4d7fdf072b6561f870812b913009fb2 (diff)
playsink: Reset mute property of the sink to playsink's value when setting up the audio chain
Otherwise the following can happen: 1. set mute=true 2. play media1 (Ok) 3. play media without audio (audiochain removed) 4. play media2 (audiochain created, mute=*false*) https://bugzilla.gnome.org/show_bug.cgi?id=740675
-rw-r--r--gst/playback/gstplaysink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
index 839cde118..8239c8563 100644
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -2995,6 +2995,8 @@ setup_audio_chain (GstPlaySink * playsink, gboolean raw)
GST_DEBUG_OBJECT (playsink, "the sink has a mute property");
chain->notify_mute_id = g_signal_connect (chain->mute, "notify::mute",
G_CALLBACK (notify_mute_cb), playsink);
+ g_object_set (chain->mute, "mute", playsink->mute, NULL);
+ playsink->mute_changed = FALSE;
}
g_object_set (chain->conv, "use-volume", FALSE, NULL);