Skip to content
Snippets Groups Projects
Commit 576fe462 authored by Edward Hervey's avatar Edward Hervey
Browse files

mpeg2dec: Properly reset on sequence changes

Otherwise we end up using stray data/buffers.

Fixes #690701
parent cfb87c76
No related branches found
No related tags found
No related merge requests found
......@@ -984,6 +984,8 @@ gst_mpeg2dec_handle_frame (GstVideoDecoder * decoder,
#if MPEG2_RELEASE >= MPEG2_VERSION (0, 5, 0)
case STATE_SEQUENCE_MODIFIED:
GST_DEBUG_OBJECT (mpeg2dec, "sequence modified");
mpeg2dec->discont_state = MPEG2DEC_DISC_NEW_PICTURE;
gst_mpeg2dec_clear_buffers (mpeg2dec);
/* fall through */
#endif
case STATE_SEQUENCE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment