mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
playbin: The internally linked pad of the selector might be NULL in some cases
This commit is contained in:
parent
67a0ef9b3a
commit
460dc94d23
2 changed files with 4 additions and 2 deletions
|
@ -330,7 +330,8 @@ gst_selector_pad_iterate_linked_pads (GstPad * pad)
|
||||||
it = gst_iterator_new_single (GST_TYPE_PAD, otherpad,
|
it = gst_iterator_new_single (GST_TYPE_PAD, otherpad,
|
||||||
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
|
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
|
||||||
|
|
||||||
gst_object_unref (otherpad);
|
if (otherpad)
|
||||||
|
gst_object_unref (otherpad);
|
||||||
gst_object_unref (sel);
|
gst_object_unref (sel);
|
||||||
|
|
||||||
return it;
|
return it;
|
||||||
|
|
|
@ -691,7 +691,8 @@ gst_stream_selector_pad_iterate_linked_pads (GstPad * pad)
|
||||||
gst_iterator_new_single (GST_TYPE_PAD, otherpad,
|
gst_iterator_new_single (GST_TYPE_PAD, otherpad,
|
||||||
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
|
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
|
||||||
|
|
||||||
gst_object_unref (otherpad);
|
if (otherpad)
|
||||||
|
gst_object_unref (otherpad);
|
||||||
gst_object_unref (sel);
|
gst_object_unref (sel);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue