From e5c6f59140f2b52e9ce3e5b0faa5ee4cd0efdc51 Mon Sep 17 00:00:00 2001 From: Andrei Sarakeev Date: Tue, 25 Nov 2014 11:38:34 +0300 Subject: [PATCH] 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 --- gst/playback/gstplaysink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 839cde1187..8239c85633 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);