basetransform: Don't unset GAP flag if working in passthrough mode
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 22 Jul 2009 07:01:56 +0000 (09:01 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 6 Aug 2009 04:41:57 +0000 (06:41 +0200)
Fixes bug #589314.

libs/gst/base/gstbasetransform.c

index aa3ec24cf219b527b09eba95c4ce85a7d881ebef..cf7b854768ffbbfb2e3ebf64ccf746517b2a5f4f 100644 (file)
@@ -1369,8 +1369,9 @@ gst_base_transform_prepare_output_buffer (GstBaseTransform * trans,
   }
   gst_buffer_set_caps (*out_buf, GST_PAD_CAPS (trans->srcpad));
 
-  /* clear the GAP flag when the subclass does not understand it */
-  if (!trans->priv->gap_aware)
+  /* clear the GAP flag when the subclass does not understand it
+   * and passthrough mode is not used */
+  if (!trans->priv->gap_aware && !trans->passthrough)
     GST_BUFFER_FLAG_UNSET (*out_buf, GST_BUFFER_FLAG_GAP);
 
   return ret;