avviddec: Reset some more fields in ::stop()

This commit is contained in:
Sebastian Dröge 2013-10-02 12:52:35 +02:00
parent 5f5b6f465c
commit 3c77754524

View file

@ -1515,6 +1515,15 @@ gst_ffmpegviddec_stop (GstVideoDecoder * decoder)
gst_video_codec_state_unref (ffmpegdec->output_state);
ffmpegdec->output_state = NULL;
ffmpegdec->ctx_width = 0;
ffmpegdec->ctx_height = 0;
ffmpegdec->ctx_ticks = 0;
ffmpegdec->ctx_time_n = 0;
ffmpegdec->ctx_time_d = 0;
ffmpegdec->ctx_pix_fmt = 0;
ffmpegdec->ctx_par_n = 0;
ffmpegdec->ctx_par_d = 0;
return TRUE;
}