From: Simon Farnsworth Date: Thu, 13 Mar 2014 18:38:33 +0000 (+0000) Subject: vaapipostproc: fix deinterlacing from non VA memory buffers. X-Git-Tag: 1.19.3~503^2~2002 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=406aa37373e2b9917714eccd2834a45d18b61fd1;p=platform%2Fupstream%2Fgstreamer.git vaapipostproc: fix deinterlacing from non VA memory buffers. When we copy a buffer because we're moving it into VA-API memory, we need to copy flags. Otherwise, interlaced YUV buffers from a capture source (e.g. V4L2) don't get flagged as interlaced. https://bugzilla.gnome.org/show_bug.cgi?id=726270 Signed-off-by: Simon Farnsworth [reversed order of gst_buffer_copy_into() flags to match <1.0 code] Signed-off-by: Gwenole Beauchesne --- diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c index 504fd8e..922260f 100644 --- a/gst/vaapi/gstvaapipluginbase.c +++ b/gst/vaapi/gstvaapipluginbase.c @@ -700,7 +700,8 @@ gst_vaapi_plugin_base_get_input_buffer (GstVaapiPluginBase * plugin, if (!success) goto error_copy_buffer; - gst_buffer_copy_into (outbuf, inbuf, GST_BUFFER_COPY_TIMESTAMPS, 0, -1); + gst_buffer_copy_into (outbuf, inbuf, GST_BUFFER_COPY_FLAGS | + GST_BUFFER_COPY_TIMESTAMPS, 0, -1); *outbuf_ptr = outbuf; return GST_FLOW_OK;