mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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:
parent
35fafae241
commit
bd0ef7fec3
1 changed files with 1 additions and 4 deletions
|
@ -330,10 +330,7 @@ gst_vp8_dec_reset (GstVideoDecoder * base_video_decoder, gboolean hard)
|
||||||
gst_video_codec_state_unref (decoder->output_state);
|
gst_video_codec_state_unref (decoder->output_state);
|
||||||
decoder->output_state = NULL;
|
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)
|
if (decoder->decoder_inited)
|
||||||
vpx_codec_destroy (&decoder->decoder);
|
vpx_codec_destroy (&decoder->decoder);
|
||||||
decoder->decoder_inited = FALSE;
|
decoder->decoder_inited = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue