libs: x11: allows 30-bit colour depth
authorStephen <elfarto@elfarto.com>
Sun, 27 Mar 2016 09:11:00 +0000 (09:11 +0000)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 29 Mar 2016 10:08:55 +0000 (12:08 +0200)
commitb64eaaad4d3be38030f8370f6e5c58bc830a813e
treee6c9db4eedf80b96a0cb2e4c29bb2236fadd4d2c
parentddddb0415b181e3ca8cc70e843b821fb01d504c9
libs: x11: allows 30-bit colour depth

The colour depth is clamped to 24 when it is not equal {15,16,24,32}. But this
fails with the NVIDIA binary driver as it doesn't advertise a TrueColor visual
with a depth of 24 (only 30 and 32). Allowing the depth to be 30, lets everything
work as expected.

https://bugzilla.gnome.org/show_bug.cgi?id=764256
gst-libs/gst/vaapi/gstvaapiutils_x11.c