ghostpad: avoid calling setcaps too many times
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 May 2011 16:52:22 +0000 (18:52 +0200)
committerWim 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

index 32daf48..23ed3ba 100644 (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