mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ximagesink: only extrapolate alpha mask for 32-bit depth
Instead of passing bogus alpha mask values when there's no alpha. https://bugzilla.gnome.org/show_bug.cgi?id=727188
This commit is contained in:
parent
0348ee66f1
commit
f270b267c5
1 changed files with 6 additions and 3 deletions
|
@ -906,9 +906,12 @@ gst_ximagesink_xcontext_get (GstXImageSink * ximagesink)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* extrapolate alpha mask */
|
/* extrapolate alpha mask */
|
||||||
alpha_mask = ~(xcontext->visual->red_mask
|
if (xcontext->depth == 32) {
|
||||||
| xcontext->visual->green_mask | xcontext->visual->blue_mask);
|
alpha_mask = ~(xcontext->visual->red_mask
|
||||||
alpha_mask &= 0xffffffff;
|
| xcontext->visual->green_mask | xcontext->visual->blue_mask);
|
||||||
|
} else {
|
||||||
|
alpha_mask = 0;
|
||||||
|
}
|
||||||
|
|
||||||
vformat =
|
vformat =
|
||||||
gst_video_format_from_masks (xcontext->depth, xcontext->bpp, endianness,
|
gst_video_format_from_masks (xcontext->depth, xcontext->bpp, endianness,
|
||||||
|
|
Loading…
Reference in a new issue