mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 19:09:41 +00:00
mpeg2dec: Fix mpeg2_reset() calls
This commit is contained in:
parent
f541f94262
commit
22b3a60dbd
1 changed files with 2 additions and 2 deletions
|
@ -212,7 +212,7 @@ gst_mpeg2dec_stop (GstVideoDecoder * decoder)
|
|||
{
|
||||
GstMpeg2dec *mpeg2dec = GST_MPEG2DEC (decoder);
|
||||
|
||||
mpeg2_reset (mpeg2dec->decoder, 1);
|
||||
mpeg2_reset (mpeg2dec->decoder, 0);
|
||||
mpeg2_skip (mpeg2dec->decoder, 1);
|
||||
|
||||
gst_mpeg2dec_clear_buffers (mpeg2dec);
|
||||
|
@ -231,7 +231,7 @@ gst_mpeg2dec_flush (GstVideoDecoder * decoder)
|
|||
|
||||
/* reset the initial video state */
|
||||
mpeg2dec->discont_state = MPEG2DEC_DISC_NEW_PICTURE;
|
||||
mpeg2_reset (mpeg2dec->decoder, 0);
|
||||
mpeg2_reset (mpeg2dec->decoder, 1);
|
||||
mpeg2_skip (mpeg2dec->decoder, 1);
|
||||
|
||||
gst_mpeg2dec_clear_buffers (mpeg2dec);
|
||||
|
|
Loading…
Reference in a new issue