From 7bdb37c01b50fbede1107ed4f003641ad197a1fb Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Thu, 13 Jan 2022 14:17:09 +0100 Subject: [PATCH] waylandsink: Fix alpha value for the test pattern in example The background-color property is in big-endian ARGB, resulting in a alpha value of `0`. This accidentally used to work on all common compositors, but on Weston this now correctly results in a black background. See also https://gitlab.freedesktop.org/wayland/weston/-/issues/577 Part-of: --- subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c b/subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c index 19abd6c329..d52a7097d3 100644 --- a/subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c +++ b/subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c @@ -254,10 +254,10 @@ main (int argc, char **argv) } else { if (live) { d->pipeline = gst_parse_launch ("videotestsrc pattern=18 " - "background-color=0x000062FF is-live=true ! waylandsink", NULL); + "background-color=0xFF0062FF is-live=true ! waylandsink", NULL); } else { d->pipeline = gst_parse_launch ("videotestsrc pattern=18 " - "background-color=0x000062FF ! waylandsink", NULL); + "background-color=0xFF0062FF ! waylandsink", NULL); } }