mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
basevideodecoder: video state reference to codec_data is not refcounted
... but rather implicitly valid as long as sink caps are not modified.
This commit is contained in:
parent
a1825bd5e2
commit
380a443be4
1 changed files with 0 additions and 3 deletions
|
@ -247,9 +247,6 @@ gst_base_video_decoder_sink_setcaps (GstPad * pad, GstCaps * caps)
|
|||
|
||||
state = &GST_BASE_VIDEO_CODEC (base_video_decoder)->state;
|
||||
|
||||
if (state->codec_data) {
|
||||
gst_buffer_unref (state->codec_data);
|
||||
}
|
||||
memset (state, 0, sizeof (GstVideoState));
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
|
Loading…
Reference in a new issue