From f1f2a2ff1883cabc3f55fc6f73cbac19397b92cd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 21 Jul 2011 14:18:30 +0200 Subject: [PATCH] basetrans: fix comment and warn Emit a warning in the debug log when something seems weird. --- libs/gst/base/gstbasetransform.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index dd9436b26c..2127217dec 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -1455,8 +1455,10 @@ gst_base_transform_prepare_output_buffer (GstBaseTransform * trans, if (trans->passthrough && in_buf != *out_buf) { /* we are asked to perform a passthrough transform but the input and * output buffers are different. We have to discard the output buffer and - * reuse the input buffer. */ - GST_DEBUG_OBJECT (trans, "passthrough but different buffers"); + * reuse the input buffer. This is rather weird, it means that the prepare + * output buffer does something wrong. */ + GST_WARNING_OBJECT (trans, "passthrough but different buffers, check the " + "prepare_output_buffer implementation"); gst_buffer_unref (*out_buf); *out_buf = in_buf; }