summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2020-02-04 09:57:42 -0800
committerU. Artie Eoff <ullysses.a.eoff@intel.com>2020-02-05 10:16:16 -0800
commitc6d8ee737f01f897940d79528b0452d117c26e24 (patch)
tree503578f7f51d93dbb2935661b0be1f2fdcd261aa /gst
parent654e824555552a8baf0a9ccb702208fc6a08985c (diff)
vaapipostproc: set srcpad colorimetry unconditionally
We always need a srcpad colorimetry for VAAPI VPP operations. Also, check the return value of _set_colorimetry.
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapipostprocutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapipostprocutil.c b/gst/vaapi/gstvaapipostprocutil.c
index a11e5552..51cf7d7b 100644
--- a/gst/vaapi/gstvaapipostprocutil.c
+++ b/gst/vaapi/gstvaapipostprocutil.c
@@ -719,8 +719,8 @@ _get_preferred_caps (GstVaapiPostproc * postproc, GstVideoInfo * vinfo,
goto fixate_failed;
_set_multiview_mode (postproc, vinfo, structure);
- if (f == GST_VAAPI_CAPS_FEATURE_SYSTEM_MEMORY)
- _set_colorimetry (postproc, format, structure);
+ if (!_set_colorimetry (postproc, format, structure))
+ goto fixate_failed;
if (!_set_interlace_mode (postproc, vinfo, structure))
goto interlace_mode_failed;