decodebin2: fix element factory refcounting
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Sep 2011 11:32:01 +0000 (12:32 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Sep 2011 11:34:06 +0000 (12:34 +0100)
commitf93748fbd496953409b8e0815ac6a27b2ad5367c
tree4991e775a7b4b8f02744cf508ba79b49734baab2
parentcea0ac790f900c79227a4df0c52efaa6b5a1efbd
decodebin2: fix element factory refcounting

g_value_get_object() does not give us our own ref.

Fixes "Trying to dispose object "flacparse", but it still has a parent "registry0".
You need to let the parent manage the object instead of unreffing the object directly."
and similar warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=658416
gst/playback/gstdecodebin2.c