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:
Mark Nauwelaerts 2011-04-01 18:49:10 +02:00
parent a1825bd5e2
commit 380a443be4

View file

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