mpeg2dec: copy buffer flags when cropping

When we crop a buffer, copy the flags as well.
This commit is contained in:
Wim Taymans 2012-07-23 13:32:26 +02:00
parent 5bc6b54185
commit f0b0ffa1cf

View file

@ -365,6 +365,9 @@ gst_mpeg2dec_crop_buffer (GstMpeg2dec * dec, GstVideoCodecFrame * in_frame,
gst_video_frame_unmap (&output_frame);
GST_BUFFER_FLAGS (in_frame->output_buffer) =
GST_BUFFER_FLAGS (input_vframe->buffer);
beach:
gst_video_codec_state_unref (state);