summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2020-04-10 04:24:03 +1000
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-04-09 18:29:51 +0000
commit212c94312ef747f6f0a216bb80ee047e0f060199 (patch)
tree95eb1d5f5dae1f893ce3572a89ac1cfeb48ba3b9
parent4216bd6eb2cb4cf767d79f3ce81fc82336447a46 (diff)
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.
-rw-r--r--ext/pango/gsttextrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pango/gsttextrender.c b/ext/pango/gsttextrender.c
index 302cb0d93a..d11bc74e08 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);
}