projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6f2a94
)
utils: Fix proxy_setcaps to only iterate pads of other direction
author
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Tue, 8 Dec 2009 15:40:57 +0000
(16:40 +0100)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Tue, 8 Dec 2009 15:40:57 +0000
(16:40 +0100)
gst/gstutils.c
patch
|
blob
|
history
diff --git
a/gst/gstutils.c
b/gst/gstutils.c
index
57c2a64
..
2fc29cb
100644
(file)
--- a/
gst/gstutils.c
+++ b/
gst/gstutils.c
@@
-2799,7
+2799,11
@@
gst_pad_proxy_setcaps (GstPad * pad, GstCaps * caps)
if (element == NULL)
return FALSE;
- iter = gst_element_iterate_pads (element);
+ /* only iterate the pads in the oposite direction */
+ if (GST_PAD_IS_SRC (pad))
+ iter = gst_element_iterate_sink_pads (element);
+ else
+ iter = gst_element_iterate_src_pads (element);
g_value_init (&ret, G_TYPE_BOOLEAN);
g_value_set_boolean (&ret, TRUE);