From: David Schleef Date: Mon, 23 Aug 2010 04:15:07 +0000 (-0700) Subject: deinterlace: use separate buffer metadata for fields X-Git-Tag: 1.19.3~509^2~8279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4eee45debb6b31d221e1bbf0fa56564e0b378835;p=platform%2Fupstream%2Fgstreamer.git deinterlace: use separate buffer metadata for fields Call gst_buffer_make_metadata_writable() on buffers that are duplicated into fields. Fixes #627689. --- diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 6d2a470..7c1ffc4 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -805,15 +805,15 @@ gst_deinterlace_push_history (GstDeinterlace * self, GstBuffer * buffer) if (field_layout == GST_DEINTERLACE_LAYOUT_TFF) { GST_DEBUG_OBJECT (self, "Top field first"); - field1 = gst_buffer_ref (buffer); + field1 = gst_buffer_make_metadata_writable (gst_buffer_ref (buffer)); field1_flags = PICTURE_INTERLACED_TOP; - field2 = gst_buffer_ref (buffer); + field2 = gst_buffer_make_metadata_writable (gst_buffer_ref (buffer)); field2_flags = PICTURE_INTERLACED_BOTTOM; } else { GST_DEBUG_OBJECT (self, "Bottom field first"); - field1 = gst_buffer_ref (buffer); + field1 = gst_buffer_make_metadata_writable (gst_buffer_ref (buffer)); field1_flags = PICTURE_INTERLACED_BOTTOM; - field2 = gst_buffer_ref (buffer); + field2 = gst_buffer_make_metadata_writable (gst_buffer_ref (buffer)); field2_flags = PICTURE_INTERLACED_TOP; }