mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
vp8dec: Unref input/output states when stopping the decoder
This commit is contained in:
parent
50ad4b5bbe
commit
12b5ef6573
1 changed files with 9 additions and 0 deletions
|
@ -287,6 +287,15 @@ gst_vp8_dec_stop (GstVideoDecoder * base_video_decoder)
|
|||
GstVP8Dec *gst_vp8_dec = GST_VP8_DEC (base_video_decoder);
|
||||
|
||||
GST_DEBUG_OBJECT (gst_vp8_dec, "stop");
|
||||
|
||||
if (gst_vp8_dec->output_state) {
|
||||
gst_video_codec_state_unref (gst_vp8_dec->output_state);
|
||||
gst_vp8_dec->output_state = NULL;
|
||||
}
|
||||
if (gst_vp8_dec->input_state) {
|
||||
gst_video_codec_state_unref (gst_vp8_dec->input_state);
|
||||
gst_vp8_dec->input_state = NULL;
|
||||
}
|
||||
if (gst_vp8_dec->decoder_inited)
|
||||
vpx_codec_destroy (&gst_vp8_dec->decoder);
|
||||
gst_vp8_dec->decoder_inited = FALSE;
|
||||
|
|
Loading…
Reference in a new issue