Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_prepare_output_buffer):
If the element is configured in passthrough mode but the
prepare_output_buffer gave us a new output buffer, discard that buffer
and reuse the input buffer.
+2008-08-18 Wim Taymans <wim.taymans@collabora.co.uk>
+
+ * libs/gst/base/gstbasetransform.c:
+ (gst_base_transform_prepare_output_buffer):
+ If the element is configured in passthrough mode but the
+ prepare_output_buffer gave us a new output buffer, discard that buffer
+ and reuse the input buffer.
+
2008-08-15 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Ole André Vadla Ravnås <ole.andre.ravnas at tandberg com>
*out_buf = in_buf;
}
} else {
+ 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");
+ discard = TRUE;
+ }
if (discard) {
GST_DEBUG_OBJECT (trans, "discard buffer, reuse input buffer");
gst_buffer_unref (*out_buf);