Fix the incorrect surface attached to buffer in VPP
authorLi Xiaowei <xiaowei.a.li@intel.com>
Mon, 22 Apr 2013 10:14:59 +0000 (18:14 +0800)
committerZhao Halley <halley.zhao@intel.com>
Tue, 23 Apr 2013 02:05:50 +0000 (10:05 +0800)
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 <xiaowei.a.li@intel.com>
gst/vaapi/gstvaapipostproc.c

index 08e0d22..a7071e0 100755 (executable)
@@ -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);