Unref peer request pad after releasing it, since we hold a reference.

This commit is contained in:
Michael Smith 2009-01-30 10:54:12 -08:00
parent af8d3c51f0
commit 906502b9bb

View file

@ -1838,6 +1838,7 @@ pad_removed_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
/* release the pad to the selector, this will make the selector choose a new
* pad. */
gst_element_release_request_pad (selector, peer);
gst_object_unref (peer);
gst_object_unref (selector);
GST_SOURCE_GROUP_UNLOCK (group);