vp8dec: Don't clear input state in reset()

The input state is still valid after flushing until
new caps arrive.

Fixes bug #688092.
This commit is contained in:
Sebastian Dröge 2012-11-12 09:48:45 +01:00
parent 35fafae241
commit bd0ef7fec3

View file

@ -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;