mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
ximagesrc: 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=726833
This commit is contained in:
parent
0918662624
commit
39fc394254
1 changed files with 6 additions and 2 deletions
|
@ -1073,8 +1073,12 @@ gst_ximage_src_get_caps (GstBaseSrc * bs, GstCaps * filter)
|
|||
GST_DEBUG ("width = %d, height=%d", width, height);
|
||||
|
||||
/* extrapolate alpha mask */
|
||||
alpha_mask = ~(xcontext->r_mask_output
|
||||
| xcontext->g_mask_output | xcontext->b_mask_output);
|
||||
if (xcontext->depth == 32) {
|
||||
alpha_mask = ~(xcontext->r_mask_output
|
||||
| xcontext->g_mask_output | xcontext->b_mask_output);
|
||||
} else {
|
||||
alpha_mask = 0;
|
||||
}
|
||||
|
||||
format =
|
||||
gst_video_format_from_masks (xcontext->depth, xcontext->bpp,
|
||||
|
|
Loading…
Reference in a new issue