ghostpad: avoid calling setcaps too many times

Don't call setcaps, the caps event will take care of propagating the caps on all
pads.
This commit is contained in:
Wim Taymans 2011-05-18 18:52:22 +02:00
parent dc520c11bc
commit 25989f3c8d

View file

@ -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