waylandsink: Fix alpha value for the test pattern in example
authorRobert Mader <robert.mader@collabora.com>
Thu, 13 Jan 2022 13:17:09 +0000 (14:17 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 13 Jan 2022 19:39:59 +0000 (19:39 +0000)
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>

subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c

index 19abd6c..d52a709 100644 (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);
     }
   }