mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
theoradec: reset freed input and output states
Conflicts: ext/theora/gsttheoradec.c
This commit is contained in:
parent
9262e00007
commit
b80f5e53c4
1 changed files with 6 additions and 2 deletions
|
@ -244,10 +244,14 @@ theora_dec_stop (GstVideoDecoder * decoder)
|
|||
th_decode_free (dec->decoder);
|
||||
dec->decoder = NULL;
|
||||
gst_theora_dec_reset (dec);
|
||||
if (dec->input_state)
|
||||
if (dec->input_state) {
|
||||
gst_video_codec_state_unref (dec->input_state);
|
||||
if (dec->output_state)
|
||||
dec->input_state = NULL;
|
||||
}
|
||||
if (dec->output_state) {
|
||||
gst_video_codec_state_unref (dec->output_state);
|
||||
dec->output_state = NULL;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue