playsink: assign chain->mute before using it

Fixes GObject warnings when starting totem.
This commit is contained in:
Tim-Philipp Müller 2009-11-10 00:48:42 +00:00
parent dcf556893f
commit 23f92ed8cd

View file

@ -1606,11 +1606,11 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw, gboolean queue)
g_signal_connect (chain->volume, "notify::volume",
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 */
chain->mute = chain->volume;
g_signal_connect (chain->mute, "notify::mute",
G_CALLBACK (notify_mute_cb), playsink);
/* configure with the latest volume and mute */
g_object_set (G_OBJECT (chain->volume), "volume", playsink->volume,