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:
dc520c1
)
ghostpad: avoid calling setcaps too many times
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 18 May 2011 16:52:22 +0000
(18:52 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 18 May 2011 16:52:22 +0000
(18:52 +0200)
Don't call setcaps, the caps event will take care of propagating the caps on all
pads.
gst/gstghostpad.c
patch
|
blob
|
history
diff --git
a/gst/gstghostpad.c
b/gst/gstghostpad.c
index
32daf48
..
23ed3ba
100644
(file)
--- a/
gst/gstghostpad.c
+++ b/
gst/gstghostpad.c
@@
-459,7
+459,12
@@
gst_proxy_pad_setcaps_default (GstPad * pad, GstCaps * caps)
target = gst_proxy_pad_get_target (pad);
if (target) {
+#if 0
+ /* FIXME, not needed, the caps event will propagate over the pads
+ * correctly */
res = gst_pad_set_caps (target, caps);
+#endif
+ res = TRUE;
gst_object_unref (target);
} else {
/* We don't have any target, but we shouldn't return FALSE since this