diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2007-11-10 17:52:43 -0800 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2007-11-10 17:52:43 -0800 |
commit | 7fbb1e8a56ed60cb0ec4455e52469fee6c6fb1d5 (patch) | |
tree | ee2c91bc528e71e4fc09889913e7b4046700d63c | |
parent | 5811e6a2aee23addb3d949891497b49c28a2161f (diff) | |
download | libva-7fbb1e8a56ed60cb0ec4455e52469fee6c6fb1d5.tar.gz |
Generate proper error for NULL display.
-rw-r--r-- | src/va.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |