From 6fd97a6d64731ccb3631c50f73eda9d5d4e5e679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 22 Jul 2009 09:01:56 +0200 Subject: [PATCH] basetransform: Don't unset GAP flag if working in passthrough mode Fixes bug #589314. --- libs/gst/base/gstbasetransform.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index aa3ec24cf2..cf7b854768 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -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;