vafilter: Fix logging of unsupported alpha blending.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 24 May 2022 11:19:45 +0000 (13:19 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 24 May 2022 12:30:49 +0000 (12:30 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2477>

subprojects/gst-plugins-bad/sys/va/gstvafilter.c

index 59de2e81486cb59a75e811f7043bea9083e682ed..68eb8d68fe51d83b1b73f115600c18d5739577a4 100644 (file)
@@ -1729,7 +1729,7 @@ gst_va_filter_has_compose (GstVaFilter * self)
 
   /* some drivers can compose, but may not support blending (e.g. GALLIUM) */
 #ifndef GST_DISABLE_GST_DEBUG
-  if (self->pipeline_caps.blend_flags & VA_BLEND_GLOBAL_ALPHA)
+  if (!(self->pipeline_caps.blend_flags & VA_BLEND_GLOBAL_ALPHA))
     GST_WARNING_OBJECT (self, "VPP does not support alpha blending");
 #endif