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
@ -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…
x
Reference in New Issue
Block a user