From 4a63886eb723ffdaee09ca6ab29fdb30e5c4fe87 Mon Sep 17 00:00:00 2001 From: Li Xiaowei Date: Mon, 22 Apr 2013 18:14:59 +0800 Subject: [PATCH] Fix the incorrect surface attached to buffer in VPP Attach src surface to dst buffer will wash out the post processed surface in VPP. Remove this step to fix the bug. Signed-off-by: Li Xiaowei --- gst/vaapi/gstvaapipostproc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 08e0d22..a7071e0 100755 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -353,9 +353,6 @@ gst_vaapipostproc_process(GstVaapiPostproc *postproc, GstBuffer *buf) GST_BUFFER_DURATION(new_buf) = GST_BUFFER_DURATION(buf); gst_buffer_set_caps(new_buf, postproc->srcpad_caps); - gst_vaapi_video_buffer_set_surface_proxy( - GST_VAAPI_VIDEO_BUFFER(new_buf), gst_vaapi_video_buffer_get_surface_proxy(GST_VAAPI_VIDEO_BUFFER(buf))); - if (pattrs->deinterlace) { guint flags = gst_vaapi_video_buffer_get_render_flags(vbuf); // flags &= ~(GST_VAAPI_PICTURE_STRUCTURE_TOP_FIELD| GST_VAAPI_PICTURE_STRUCTURE_BOTTOM_FIELD); -- 2.7.4