basetransform: Don't unset GAP flag if working in passthrough mode

Fixes bug #589314.
This commit is contained in:
Sebastian Dröge 2009-07-22 09:01:56 +02:00
parent 4385e707b1
commit 6fd97a6d64

View 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;