• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revision5b7741250252600aac4195114bb1917112780387 (tree)
Zeit2013-06-19 16:18:55
AutorAustin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

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>
(cherry picked from commit 40e5e45edf97049137bca014575607b52d3bca78)

Ändern Zusammenfassung

Diff

--- a/va/va.c
+++ b/va/va.c
@@ -287,7 +287,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
287287 }
288288 ctx->vtable_vpp = vtable_vpp;
289289
290- if (VA_STATUS_SUCCESS == vaStatus)
290+ if (init_func && VA_STATUS_SUCCESS == vaStatus)
291291 vaStatus = (*init_func)(ctx);
292292
293293 if (VA_STATUS_SUCCESS == vaStatus) {