rtpsession: Use an empty iterator in iterate_internal_link when no links

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.
This commit is contained in:
Thibault Saunier 2014-12-03 17:26:56 +01:00
parent 62193129c5
commit 52a1773b40

View 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;