From ee27377cb38293f8e4f807ad4d0eaaf6d9740174 Mon Sep 17 00:00:00 2001 From: "Soon, Thean Siew" Date: Thu, 4 Oct 2018 02:20:10 +0800 Subject: [PATCH] vaapipostproc: change the way of handling deinterlace The current vaapipostproc calls driver's video processing pipeline for deinterlacing only if it is Advance deinterlacing. Modify in the way that it always tries with driver's video processing pipeline for deinterlacing, and falls back to software method of appending picture structure meta data only if it fails with driver's method. https://bugzilla.gnome.org/show_bug.cgi?id=797095 --- gst/vaapi/gstvaapipostproc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index df977f15af..66c5e1c4ce 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -1314,9 +1314,7 @@ gst_vaapipostproc_transform (GstBaseTransform * trans, GstBuffer * inbuf, ret = GST_FLOW_NOT_SUPPORTED; if (postproc->flags) { /* Use VA/VPP extensions to process this frame */ - if (postproc->has_vpp && - (postproc->flags != GST_VAAPI_POSTPROC_FLAG_DEINTERLACE || - deint_method_is_advanced (postproc->deinterlace_method))) { + if (postproc->has_vpp) { ret = gst_vaapipostproc_process_vpp (trans, buf, outbuf); if (ret != GST_FLOW_NOT_SUPPORTED) goto done;