rtpsession: Use an empty iterator in iterate_internal_link when no links
authorThibault Saunier <tsaunier@gnome.org>
Wed, 3 Dec 2014 16:26:56 +0000 (17:26 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Tue, 9 Dec 2014 19:38:22 +0000 (20:38 +0100)
And not a NULL Iterator, so it is consistent with the way it usually
works and avoid user to need a different code paths to handle that.

gst/rtpmanager/gstrtpsession.c

index 88293cc..8c7306b 100644 (file)
@@ -1676,6 +1676,8 @@ gst_rtp_session_iterate_internal_links (GstPad * pad, GstObject * parent)
     it = gst_iterator_new_single (GST_TYPE_PAD, &val);
     g_value_unset (&val);
     gst_object_unref (otherpad);
+  } else {
+    it = gst_iterator_new_single (GST_TYPE_PAD, NULL);
   }
 
   return it;