textrender: Fix AYUV output.
authorJan Schmidt <jan@centricular.com>
Thu, 9 Apr 2020 18:24:03 +0000 (04:24 +1000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 9 Apr 2020 18:29:51 +0000 (18:29 +0000)
Fix the check for whether the element is operating in ARGB mode. It
was incorrectly checking if the output format has an alpha channel,
which is true for both ARGB and AYUV, leading to the element
incorrectly outputting ARGB values into AYUV caps.

ext/pango/gsttextrender.c

index 302cb0d..d11bc74 100644 (file)
@@ -341,7 +341,7 @@ gst_text_render_check_argb (GstTextRender * render)
       if (info == NULL)
         continue;
 
-      render->use_ARGB = GST_VIDEO_FORMAT_INFO_HAS_ALPHA (info);
+      render->use_ARGB = GST_VIDEO_FORMAT_INFO_IS_RGB (info);
     }
     gst_caps_unref (peer_caps);
   }