mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
ghostpad: The internally linked pad of the proxypad is the ghostpad
Previously we were returning the peerpad, which is the target of the ghostpad.
This commit is contained in:
parent
c4c06a2b88
commit
256e7238b4
1 changed files with 5 additions and 4 deletions
|
@ -132,11 +132,12 @@ static GstIterator *
|
||||||
gst_proxy_pad_do_iterate_internal_links (GstPad * pad)
|
gst_proxy_pad_do_iterate_internal_links (GstPad * pad)
|
||||||
{
|
{
|
||||||
GstIterator *res = NULL;
|
GstIterator *res = NULL;
|
||||||
GstPad *target = gst_proxy_pad_get_target (pad);
|
GstPad *internal = GST_PROXY_PAD_INTERNAL (pad);
|
||||||
|
|
||||||
if (target) {
|
if (internal) {
|
||||||
res = gst_pad_iterate_internal_links (target);
|
res =
|
||||||
gst_object_unref (target);
|
gst_iterator_new_single (GST_TYPE_PAD, internal,
|
||||||
|
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue