mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
mpeg2dec: Properly reset on sequence changes
Otherwise we end up using stray data/buffers. Fixes #690701
This commit is contained in:
parent
cfb87c7638
commit
576fe462bc
1 changed files with 2 additions and 0 deletions
|
@ -984,6 +984,8 @@ gst_mpeg2dec_handle_frame (GstVideoDecoder * decoder,
|
||||||
#if MPEG2_RELEASE >= MPEG2_VERSION (0, 5, 0)
|
#if MPEG2_RELEASE >= MPEG2_VERSION (0, 5, 0)
|
||||||
case STATE_SEQUENCE_MODIFIED:
|
case STATE_SEQUENCE_MODIFIED:
|
||||||
GST_DEBUG_OBJECT (mpeg2dec, "sequence modified");
|
GST_DEBUG_OBJECT (mpeg2dec, "sequence modified");
|
||||||
|
mpeg2dec->discont_state = MPEG2DEC_DISC_NEW_PICTURE;
|
||||||
|
gst_mpeg2dec_clear_buffers (mpeg2dec);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
#endif
|
#endif
|
||||||
case STATE_SEQUENCE:
|
case STATE_SEQUENCE:
|
||||||
|
|
Loading…
Reference in a new issue