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 59de2e8..68eb8d6 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