mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
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:
parent
62193129c5
commit
52a1773b40
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue