OSDN Git Service

va/x11: Don't crash the application if it does not have access to the DRI2 device.
authorFrancois Gouget <fgouget@codeweavers.com>
Tue, 29 Sep 2015 07:24:20 +0000 (15:24 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 29 Sep 2015 07:26:21 +0000 (15:26 +0800)
commitd3b24b76dfde4daef9d463743971c7522a307092
treedccc21c79d3f404f37c46813e572b5d74879dc17
parenta08a6903af43a942966c78897a4294f47b3226e4
va/x11: Don't crash the application if it does not have access to the DRI2 device.

Applications run in a different account than the logged in user will not have permission
to access /dev/dri/card0 but may be able to work without it, particularly if VA-API was
brought in through a general framework such as GStreamer.

Signed-off-by: Francois Gouget <fgouget@free.fr>
va/x11/dri2_util.c