mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
theoradec: Don't leak input state if a second type packet is received
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6203>
This commit is contained in:
parent
be4388c249
commit
43fb350c42
1 changed files with 2 additions and 0 deletions
|
@ -487,6 +487,8 @@ theora_handle_type_packet (GstTheoraDec * dec)
|
|||
}
|
||||
|
||||
/* Create the output state */
|
||||
if (dec->output_state)
|
||||
gst_video_codec_state_unref (dec->output_state);
|
||||
dec->output_state = state =
|
||||
gst_video_decoder_set_output_state (GST_VIDEO_DECODER (dec), fmt,
|
||||
width, height, dec->input_state);
|
||||
|
|
Loading…
Reference in a new issue