summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--va/va.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/va.c b/va/va.c
index 54f3d02..851a41f 100644
--- a/va/va.c
+++ b/va/va.c
@@ -287,7 +287,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
}
ctx->vtable_vpp = vtable_vpp;
- if (VA_STATUS_SUCCESS == vaStatus)
+ if (init_func && VA_STATUS_SUCCESS == vaStatus)
vaStatus = (*init_func)(ctx);
if (VA_STATUS_SUCCESS == vaStatus) {