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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1446>
This commit is contained in:
Robert Mader 2022-01-13 14:17:09 +01:00 committed by GStreamer Marge Bot
parent f0b04f1ef1
commit 7bdb37c01b

View file

@ -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);
}
}