mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
274d8066ce
commit
e5c6f59140
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue