diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2012-08-02 18:16:35 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2012-08-08 11:22:36 +0800 |
commit | 40e5e45edf97049137bca014575607b52d3bca78 (patch) | |
tree | afe8d3685a8b04d1470b0533d28a68d4ad7f01bd | |
parent | c33be17dd8f2fcbd3c89a9cfd52471060fe1435a (diff) |
va.c: need to check the symbol before calling it
This is to fix Klockwork critical issue
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r-- | va/va.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -282,7 +282,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) { |