summaryrefslogtreecommitdiff
path: root/ext/libav/gstavviddec.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-10-02 12:52:35 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-10-02 12:52:35 +0200
commit3c777545245b4dc6e1e59a637a7ebb8277fc226d (patch)
tree2d19397fcfe448d0172f9f791f92400b83aa0a39 /ext/libav/gstavviddec.c
parent5f5b6f465c1741e7103a4eb0cbfd385b79fdb98e (diff)
downloadgst-libav-3c777545245b4dc6e1e59a637a7ebb8277fc226d.tar.gz
avviddec: Reset some more fields in ::stop()
Diffstat (limited to 'ext/libav/gstavviddec.c')
-rw-r--r--ext/libav/gstavviddec.c9
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;
}