summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2020-04-10 04:24:03 +1000
committerTim-Philipp Müller <tim@centricular.com>2020-06-07 00:53:34 +0100
commit75d91a0958f8f9fa4ba64558df18e04b1a5af75a (patch)
tree207674205805d3905437aa9364fbd5da14339a8b
parentc0c7d45e92d0886821822450961f130e3f366b8c (diff)
downloadgstreamer-plugins-base-75d91a0958f8f9fa4ba64558df18e04b1a5af75a.tar.gz
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 302cb0d93..d11bc74e0 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);
}