basetrans: fix comment and warn
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 21 Jul 2011 12:18:30 +0000 (14:18 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 21 Jul 2011 12:18:30 +0000 (14:18 +0200)
Emit a warning in the debug log when something seems weird.

libs/gst/base/gstbasetransform.c

index dd9436b..2127217 100644 (file)
@@ -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;
   }