mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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.
This commit is contained in:
parent
4216bd6eb2
commit
212c94312e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue