summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-03 18:12:21 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-03 18:12:21 +0100
commit8ebd2e1be709ea10a0b8fbff71b894d938f252c0 (patch)
tree4c48f7b63bb7feb558220bd78aa508ef0000629b /gst
parentd20e30f3481be0d7610093da549707a2a6749f46 (diff)
downloadgstreamer-plugins-bad-8ebd2e1be709ea10a0b8fbff71b894d938f252c0.tar.gz
inputselector: Use the same iterate internal links function as in gst-plugins-base
Diffstat (limited to 'gst')
-rw-r--r--gst/selector/gstinputselector.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gst/selector/gstinputselector.c b/gst/selector/gstinputselector.c
index 046470c41..e5918bb43 100644
--- a/gst/selector/gstinputselector.c
+++ b/gst/selector/gstinputselector.c
@@ -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
* the srcpad else we return NULL */
-
static GstIterator *
gst_selector_pad_iterate_linked_pads (GstPad * pad)
{
GstInputSelector *sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
- GstPad *opad = gst_input_selector_get_linked_pad (pad, TRUE);
- GstIterator *it = gst_iterator_new_single (GST_TYPE_PAD, opad,
+ GstPad *otherpad;
+ 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);
- if (opad)
- gst_object_unref (opad);
+ if (otherpad)
+ gst_object_unref (otherpad);
gst_object_unref (sel);
return it;