playbin2: fix refcounting of _get_sink()
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 24 Aug 2009 13:06:28 +0000 (15:06 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 24 Aug 2009 13:08:36 +0000 (15:08 +0200)
commitc3ebeec5a54c6c00bf30f7196968a9369c3d8205
treee55b4dc42566d91fcdc1fb7e14c060d039fb083c
parent8ce3612b7174fbf093be88802ee691fd77698dd8
playbin2: fix refcounting of _get_sink()

g_value_set_object() increases the refcount of the sink, which is not needed
because the object should already be refcounted. Make sure this is always the
case and use g_value_take_object().

Fixes: #592884
gst/playback/gstplaybin2.c