summaryrefslogtreecommitdiff
path: root/gst/playback/gststreamselector.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/playback/gststreamselector.c')
-rw-r--r--gst/playback/gststreamselector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/playback/gststreamselector.c b/gst/playback/gststreamselector.c
index bfc6020c9..0fb4f4c82 100644
--- a/gst/playback/gststreamselector.c
+++ b/gst/playback/gststreamselector.c
@@ -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;