diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2009-02-16 08:42:14 -0500 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2009-02-16 08:42:14 -0500 |
commit | b0cb52d5d82f740efcfa201f9b66d19302d66679 (patch) | |
tree | d225b41929449f00b8fb8090f92e8f9e57793c20 /src/X11/va_x11.c | |
parent | ad7f7f2b72da6e5b632ebed6878e84d7c3527beb (diff) | |
parent | 363989ecbaf75829686218091c8d3d9703fa5e6c (diff) |
Merge branch 'master' of ssh://git@moblin-mdi.jf.intel.com/umg-moorestown-libva20090306
Diffstat (limited to 'src/X11/va_x11.c')
-rw-r--r-- | src/X11/va_x11.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/X11/va_x11.c b/src/X11/va_x11.c index 7bad12b..61ef2bf 100644 --- a/src/X11/va_x11.c +++ b/src/X11/va_x11.c @@ -154,6 +154,28 @@ static VAStatus va_DisplayContextGetDriverName ( return vaStatus; } +int vaDisplayIsValid(VADisplay dpy) +{ + VADisplayContextP tmp=NULL; + VADisplayContextP pDisplayContext = pDisplayContexts; + + while (pDisplayContext) + { + if (pDisplayContext == (VADisplayContextP)dpy) + { + tmp = (VADisplay)pDisplayContext; + break; + } + pDisplayContext = pDisplayContext->pNext; + } + + if (!tmp) + return 0; + + return tmp->vaIsValid(pDisplayContext); +} + + VADisplay vaGetDisplay ( Display *native_dpy ) |