mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
inputselector: Use the same iterate internal links function as in gst-plugins-base
This commit is contained in:
parent
d20e30f348
commit
8ebd2e1be7
1 changed files with 7 additions and 5 deletions
|
@ -318,17 +318,19 @@ gst_selector_pad_reset (GstSelectorPad * pad)
|
||||||
|
|
||||||
/* strictly get the linked pad from the sinkpad. If the pad is active we return
|
/* strictly get the linked pad from the sinkpad. If the pad is active we return
|
||||||
* the srcpad else we return NULL */
|
* the srcpad else we return NULL */
|
||||||
|
|
||||||
static GstIterator *
|
static GstIterator *
|
||||||
gst_selector_pad_iterate_linked_pads (GstPad * pad)
|
gst_selector_pad_iterate_linked_pads (GstPad * pad)
|
||||||
{
|
{
|
||||||
GstInputSelector *sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
GstInputSelector *sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||||
GstPad *opad = gst_input_selector_get_linked_pad (pad, TRUE);
|
GstPad *otherpad;
|
||||||
GstIterator *it = gst_iterator_new_single (GST_TYPE_PAD, opad,
|
GstIterator *it;
|
||||||
|
|
||||||
|
otherpad = gst_input_selector_get_linked_pad (pad, TRUE);
|
||||||
|
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);
|
||||||
|
|
||||||
if (opad)
|
if (otherpad)
|
||||||
gst_object_unref (opad);
|
gst_object_unref (otherpad);
|
||||||
gst_object_unref (sel);
|
gst_object_unref (sel);
|
||||||
|
|
||||||
return it;
|
return it;
|
||||||
|
|
Loading…
Reference in a new issue