summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorRen Zhaohan <zhaohan.ren@intel.com>2010-05-11 14:45:13 +0800
committerRen Zhaohan <zhaohan.ren@intel.com>2010-05-11 14:45:13 +0800
commit4183d5150a7d118d792cc9984505c3df572a848f (patch)
tree4208eb5bdf6927887bc8a42538c0f90d2946e4cd /va
parent7ce4ebf0609e219a4b8b5583d1446c6eccf58d5b (diff)
downloadlibva-4183d5150a7d118d792cc9984505c3df572a848f.tar.gz
Add local vaDisplayIsValid
Diffstat (limited to 'va')
-rw-r--r--va/android/va_android.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/va/android/va_android.cpp b/va/android/va_android.cpp
index 4596657..9869883 100644
--- a/va/android/va_android.cpp
+++ b/va/android/va_android.cpp
@@ -47,6 +47,12 @@
static VADisplayContextP pDisplayContexts = NULL;
+static int vaDisplayIsValid (VADisplay dpy)
+{
+ VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
+ return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext);
+}
+
static int open_device (char *dev_name)
{
struct stat st;