summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2013-12-18 16:36:41 +1100
committerXiang, Haihao <haihao.xiang@intel.com>2015-11-23 23:30:45 +0800
commit66fe238c1c3f37d75c21c8b0062e98c4e754e653 (patch)
treea0682c11478ff3e11b427962ea417fcf5d3c39fd
parent206f203ab4052a6972d5eba84eb6013b88a87bb1 (diff)
downloadlibva-66fe238c1c3f37d75c21c8b0062e98c4e754e653.tar.gz
LIBVA_DRIVER_NAME needs to be used if set at all
va_GetDriverName fails to find the vdpau driver returning something != SUCCESS and the driver name is not used at all. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72822 Change-Id: I29ef398bf066badedc25de10873975ad0479dccf Signed-off-by: Philippe Coval <rzr@gna.org>
-rw-r--r--va/va.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/va/va.c b/va/va.c
index 7d83173..2ce61b0 100644
--- a/va/va.c
+++ b/va/va.c
@@ -544,8 +544,7 @@ VAStatus vaInitialize (
va_infoMessage("User requested driver '%s'\n", driver_name);
}
- if ((VA_STATUS_SUCCESS == vaStatus) &&
- driver_name_env && (geteuid() == getuid())) {
+ if (driver_name_env && (geteuid() == getuid())) {
/* Don't allow setuid apps to use LIBVA_DRIVER_NAME */
if (driver_name) /* memory is allocated in va_getDriverName */
free(driver_name);