summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Gouget <fgouget@codeweavers.com>2015-09-29 15:24:20 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-09-29 15:26:21 +0800
commitd3b24b76dfde4daef9d463743971c7522a307092 (patch)
treedccc21c79d3f404f37c46813e572b5d74879dc17
parenta08a6903af43a942966c78897a4294f47b3226e4 (diff)
downloadlibva-d3b24b76dfde4daef9d463743971c7522a307092.tar.gz
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>
-rw-r--r--va/x11/dri2_util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/va/x11/dri2_util.c b/va/x11/dri2_util.c
index 9f0dc76..d076fb3 100644
--- a/va/x11/dri2_util.c
+++ b/va/x11/dri2_util.c
@@ -196,7 +196,6 @@ isDRI2Connected(VADriverContextP ctx, char **driver_name)
goto err_out;
dri_state->base.fd = open(device_name, O_RDWR);
- assert(dri_state->base.fd >= 0);
if (dri_state->base.fd < 0)
goto err_out;