gst_buffer_make_metadata_writable is not needed
authorHarinarayan Bhatta <harinarayan@ti.com>
Thu, 3 Apr 2014 10:04:24 +0000 (15:34 +0530)
committerHarinarayan Bhatta <harinarayan@ti.com>
Thu, 3 Apr 2014 10:04:24 +0000 (15:34 +0530)
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 <harinarayan@ti.com>
src/gstducatividdec.c

index 5cd95b438a7d718792704ba0c17217c81af90554..38a94b5bb58db072f4f372c775be0570082e3520 100644 (file)
@@ -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));
       }