mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
playsink: assign chain->mute before using it
Fixes GObject warnings when starting totem.
This commit is contained in:
parent
dcf556893f
commit
23f92ed8cd
1 changed files with 2 additions and 2 deletions
|
@ -1606,11 +1606,11 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw, gboolean queue)
|
||||||
|
|
||||||
g_signal_connect (chain->volume, "notify::volume",
|
g_signal_connect (chain->volume, "notify::volume",
|
||||||
G_CALLBACK (notify_volume_cb), playsink);
|
G_CALLBACK (notify_volume_cb), playsink);
|
||||||
g_signal_connect (chain->mute, "notify::mute",
|
|
||||||
G_CALLBACK (notify_mute_cb), playsink);
|
|
||||||
|
|
||||||
/* volume also has the mute property */
|
/* volume also has the mute property */
|
||||||
chain->mute = chain->volume;
|
chain->mute = chain->volume;
|
||||||
|
g_signal_connect (chain->mute, "notify::mute",
|
||||||
|
G_CALLBACK (notify_mute_cb), playsink);
|
||||||
|
|
||||||
/* configure with the latest volume and mute */
|
/* configure with the latest volume and mute */
|
||||||
g_object_set (G_OBJECT (chain->volume), "volume", playsink->volume,
|
g_object_set (G_OBJECT (chain->volume), "volume", playsink->volume,
|
||||||
|
|
Loading…
Reference in a new issue