summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-11-10 00:48:42 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-11-10 01:06:17 +0000
commit23f92ed8cd2b358fd2eb34b9ce5c095e85974843 (patch)
treea84ea4f3c037face0930b71cc29495f1cb0e3ec5
parentdcf556893fa7b9a2a0939b3c88dc478e0a1ce92e (diff)
playsink: assign chain->mute before using it
Fixes GObject warnings when starting totem.
-rw-r--r--gst/playback/gstplaysink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
index 8c89203dd..d5bf26865 100644
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -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,