mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
libs: blend: guard VA_BLEND_GLOBAL_ALPHA
This commit is contained in:
parent
e25ef7dfc2
commit
35e5721047
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue