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
This commit is contained in:
Andrei Sarakeev 2014-11-25 11:38:34 +03:00 committed by Sebastian Dröge
parent 274d8066ce
commit e5c6f59140

View file

@ -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);