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:
Sebastian Dröge 2024-02-23 13:16:36 +02:00 committed by GStreamer Marge Bot
parent be4388c249
commit 43fb350c42

View file

@ -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);