summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWangfei <fei.w.wang@intel.com>2018-12-18 10:44:21 +0800
committerTim-Philipp Müller <tim@centricular.com>2019-05-09 01:04:00 +0200
commitcde1fff721883666b14f6ffcc0f4a7f44909d44d (patch)
tree82b28bf40b26acb420b96f9a9914694efa0d8da3
parentfb9d80cd979ffe8b49da42e54c8b0d2232e679f2 (diff)
vaapipostproc: fix csc fail when only change width or height.
-rw-r--r--gst/vaapi/gstvaapipostproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index 21ff15da..85e29fe5 100644
--- a/gst/vaapi/gstvaapipostproc.c
+++ b/gst/vaapi/gstvaapipostproc.c
@@ -1068,7 +1068,7 @@ gst_vaapipostproc_update_src_caps (GstVaapiPostproc * postproc, GstCaps * caps,
if (GST_VIDEO_INFO_WIDTH (&postproc->srcpad_info) !=
GST_VIDEO_INFO_WIDTH (&postproc->sinkpad_info)
- && GST_VIDEO_INFO_HEIGHT (&postproc->srcpad_info) !=
+ || GST_VIDEO_INFO_HEIGHT (&postproc->srcpad_info) !=
GST_VIDEO_INFO_HEIGHT (&postproc->sinkpad_info))
postproc->flags |= GST_VAAPI_POSTPROC_FLAG_SIZE;