diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-10-02 12:52:35 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-10-02 12:52:35 +0200 |
commit | 3c777545245b4dc6e1e59a637a7ebb8277fc226d (patch) | |
tree | 2d19397fcfe448d0172f9f791f92400b83aa0a39 /ext/libav/gstavviddec.c | |
parent | 5f5b6f465c1741e7103a4eb0cbfd385b79fdb98e (diff) | |
download | gst-libav-3c777545245b4dc6e1e59a637a7ebb8277fc226d.tar.gz |
avviddec: Reset some more fields in ::stop()
Diffstat (limited to 'ext/libav/gstavviddec.c')
-rw-r--r-- | ext/libav/gstavviddec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index dc9c894..0635767 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -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; } |