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;