basetransform: Don't return the return value of gst_pad_set_caps()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Jun 2012 13:32:37 +0000 (15:32 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Jun 2012 13:33:34 +0000 (15:33 +0200)
e.g. it returns FALSE if incompatible caps are set on the pad.

libs/gst/base/gstbasetransform.c

index 0733498..0e1dcae 100644 (file)
@@ -1317,7 +1317,7 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
     goto failed_configure;
 
   /* let downstream know about our caps */
-  gst_pad_push_event (trans->srcpad, gst_event_new_caps (outcaps));
+  ret = gst_pad_set_caps (trans->srcpad, outcaps);
 
   if (ret) {
     /* try to get a pool when needed */