From bd0ef7fec3cfc14c7dd28c1a9507f7df22b8a4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Nov 2012 09:48:45 +0100 Subject: [PATCH] vp8dec: Don't clear input state in reset() The input state is still valid after flushing until new caps arrive. Fixes bug #688092. --- ext/vpx/gstvp8dec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/vpx/gstvp8dec.c b/ext/vpx/gstvp8dec.c index 188b0ade80..940083b57d 100644 --- a/ext/vpx/gstvp8dec.c +++ b/ext/vpx/gstvp8dec.c @@ -330,10 +330,7 @@ gst_vp8_dec_reset (GstVideoDecoder * base_video_decoder, gboolean hard) gst_video_codec_state_unref (decoder->output_state); decoder->output_state = NULL; } - if (hard && decoder->input_state) { - gst_video_codec_state_unref (decoder->input_state); - decoder->input_state = NULL; - } + if (decoder->decoder_inited) vpx_codec_destroy (&decoder->decoder); decoder->decoder_inited = FALSE;