Cast const GstBuffer * to GstBuffer * before unreffing

This commit is contained in:
Sebastian Dröge 2009-02-22 19:40:51 +01:00
parent f436bc68d8
commit 6fc19a2c49

View file

@ -2101,7 +2101,7 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
}
if (free)
gst_buffer_unref (buf);
gst_buffer_unref (GST_BUFFER_CAST (buf));
GST_DEBUG ("have codec data of size %d", size);
} else if (context->extradata == NULL) {