mpeg2dec: Fix mpeg2_reset() calls

This commit is contained in:
Sebastian Dröge 2013-08-15 15:30:31 +02:00
parent f541f94262
commit 22b3a60dbd

View file

@ -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);