playbin: The internally linked pad of the selector might be NULL in some cases

This commit is contained in:
Sebastian Dröge 2009-08-26 16:56:19 +02:00
parent 67a0ef9b3a
commit 460dc94d23
2 changed files with 4 additions and 2 deletions

View file

@ -330,7 +330,8 @@ gst_selector_pad_iterate_linked_pads (GstPad * pad)
it = gst_iterator_new_single (GST_TYPE_PAD, otherpad,
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
gst_object_unref (otherpad);
if (otherpad)
gst_object_unref (otherpad);
gst_object_unref (sel);
return it;

View file

@ -691,7 +691,8 @@ gst_stream_selector_pad_iterate_linked_pads (GstPad * pad)
gst_iterator_new_single (GST_TYPE_PAD, otherpad,
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
gst_object_unref (otherpad);
if (otherpad)
gst_object_unref (otherpad);
gst_object_unref (sel);
return ret;