From 212c94312ef747f6f0a216bb80ee047e0f060199 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 10 Apr 2020 04:24:03 +1000 Subject: [PATCH] textrender: Fix AYUV output. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pango/gsttextrender.c b/ext/pango/gsttextrender.c index 302cb0d..d11bc74 100644 --- a/ext/pango/gsttextrender.c +++ b/ext/pango/gsttextrender.c @@ -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); } -- 2.7.4