mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
mpeg2dec: copy over all buffer flags when copying buffers.
Avoids losing the tff/rff video buffer flags
This commit is contained in:
parent
f34dd3626a
commit
2c94b415d4
1 changed files with 4 additions and 1 deletions
|
@ -437,8 +437,11 @@ crop_buffer (GstMpeg2dec * mpeg2dec, GstBuffer ** buf)
|
||||||
outbuf = crop_copy_i420_buffer (mpeg2dec, input);
|
outbuf = crop_copy_i420_buffer (mpeg2dec, input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_DEBUG ("cropping buffer");
|
||||||
|
|
||||||
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (mpeg2dec->srcpad));
|
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (mpeg2dec->srcpad));
|
||||||
gst_buffer_copy_metadata (outbuf, input, GST_BUFFER_COPY_TIMESTAMPS);
|
gst_buffer_copy_metadata (outbuf, input,
|
||||||
|
GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_FLAGS);
|
||||||
gst_buffer_unref (input);
|
gst_buffer_unref (input);
|
||||||
|
|
||||||
*buf = outbuf;
|
*buf = outbuf;
|
||||||
|
|
Loading…
Reference in a new issue