summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--va/x11/va_x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/va/x11/va_x11.c b/va/x11/va_x11.c
index 44c3330..c0dc69a 100644
--- a/va/x11/va_x11.c
+++ b/va/x11/va_x11.c
@@ -136,7 +136,9 @@ static VAStatus va_DisplayContextGetDriverName (
if (driver_name)
*driver_name = NULL;
-
+ else
+ return VA_STATUS_ERROR_UNKNOWN;
+
vaStatus = va_DRI2GetDriverName(pDisplayContext, driver_name);
if (vaStatus != VA_STATUS_SUCCESS)
vaStatus = va_NVCTRL_GetDriverName(pDisplayContext, driver_name);