summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-01-22 20:20:30 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-01-22 20:22:07 +0100
commit35e5721047b1968a14015e28eed727a43d338e67 (patch)
treec13e5eeef7eb99e4e114a9a68ba71e2450a3aa95 /gst-libs/gst
parente25ef7dfc25af0f606d698f7b35e348e19920e11 (diff)
libs: blend: guard VA_BLEND_GLOBAL_ALPHA
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiblend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiblend.c b/gst-libs/gst/vaapi/gstvaapiblend.c
index 57f9fb27..5b093d4d 100644
--- a/gst-libs/gst/vaapi/gstvaapiblend.c
+++ b/gst-libs/gst/vaapi/gstvaapiblend.c
@@ -175,12 +175,14 @@ gst_vaapi_blend_initialize (GstVaapiBlend * blend)
(blend->display), blend->va_context, NULL, 0, &pipeline_caps);
if (vaapi_check_status (status, "vaQueryVideoProcPipelineCaps()"))
blend->flags = pipeline_caps.blend_flags;
-#endif
if (!(blend->flags & VA_BLEND_GLOBAL_ALPHA)) {
GST_WARNING_OBJECT (blend, "VPP does not support global alpha blending");
return FALSE;
}
+#else
+ return FALSE;
+#endif
return TRUE;
}