From: Harinarayan Bhatta Date: Thu, 3 Apr 2014 10:04:24 +0000 (+0530) Subject: gst_buffer_make_metadata_writable is not needed X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Fgst-plugin-ducati.git;a=commitdiff_plain;h=674b37796d647a7f4371890ddca21c766bc7be4b gst_buffer_make_metadata_writable is not needed gst_buffer_make_metadata_writable is not needed, moreover it creates a copy of the buffer, just gst_buffer_set_caps will set a new caps on the buffer Signed-off-by: Harinarayan Bhatta --- diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c index 5cd95b4..38a94b5 100644 --- a/src/gstducatividdec.c +++ b/src/gstducatividdec.c @@ -566,7 +566,6 @@ codec_process (GstDucatiVidDec * self, gboolean send, gboolean flush, * otherwise */ GST_WARNING_OBJECT (self, "overriding buffer caps to fix " "interlace mismatch"); - outbuf = gst_buffer_make_metadata_writable (outbuf); gst_buffer_set_caps (outbuf, GST_PAD_CAPS (self->srcpad)); }