mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
f0b04f1ef1
commit
7bdb37c01b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue