theoradec: fix video state leaks
This commit is contained in:
parent
fd35793c38
commit
d4b8778299
@ -243,6 +243,10 @@ theora_dec_stop (GstVideoDecoder * decoder)
|
||||
gst_tag_list_free (dec->tags);
|
||||
dec->tags = NULL;
|
||||
}
|
||||
if (dec->input_state)
|
||||
gst_video_codec_state_unref (dec->input_state);
|
||||
if (dec->output_state)
|
||||
gst_video_codec_state_unref (dec->output_state);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user