[0.11] gstreamer: ghostpad: The internally linked pad of the proxypad is the ghostpad
Sebastian Dröge
slomo at kemper.freedesktop.org
Thu Mar 17 02:58:42 PDT 2011
Module: gstreamer
Branch: 0.11
Commit: 256e7238b4c8f6a8912a09779e5e4fca3f0225c4
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=256e7238b4c8f6a8912a09779e5e4fca3f0225c4
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Wed Mar 16 11:53:53 2011 +0100
ghostpad: The internally linked pad of the proxypad is the ghostpad
Previously we were returning the peerpad, which is the target
of the ghostpad.
---
gst/gstghostpad.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c
index f6280af..ba6c1b7 100644
--- a/gst/gstghostpad.c
+++ b/gst/gstghostpad.c
@@ -132,11 +132,12 @@ static GstIterator *
gst_proxy_pad_do_iterate_internal_links (GstPad * pad)
{
GstIterator *res = NULL;
- GstPad *target = gst_proxy_pad_get_target (pad);
+ GstPad *internal = GST_PROXY_PAD_INTERNAL (pad);
- if (target) {
- res = gst_pad_iterate_internal_links (target);
- gst_object_unref (target);
+ if (internal) {
+ res =
+ gst_iterator_new_single (GST_TYPE_PAD, internal,
+ (GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
}
return res;
More information about the gstreamer-commits
mailing list