mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
basetrans: fix comment and warn
Emit a warning in the debug log when something seems weird.
This commit is contained in:
parent
3bb167a1bf
commit
f1f2a2ff18
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue