projects
/
profile
/
ivi
/
libva.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5811e6a
)
Generate proper error for NULL display.
15/315/1
author
Waldo Bastian
<waldo.bastian@intel.com>
Sun, 11 Nov 2007 01:52:43 +0000
(17:52 -0800)
committer
Waldo Bastian
<waldo.bastian@intel.com>
Sun, 11 Nov 2007 01:52:43 +0000
(17:52 -0800)
src/va.c
patch
|
blob
|
history
diff --git
a/src/va.c
b/src/va.c
index
8b9b73b
..
9ff365a
100644
(file)
--- a/
src/va.c
+++ b/
src/va.c
@@
-72,6
+72,11
@@
VADisplay vaGetDisplay (
VADisplay dpy = NULL;
VADriverContextP ctx = pDriverContexts;
+ if (!native_dpy)
+ {
+ return NULL;
+ }
+
while (ctx)
{
if (ctx->x11_dpy == (Display *)native_dpy)