diff options
author | Ren Zhaohan <zhaohan.ren@intel.com> | 2010-05-11 14:45:13 +0800 |
---|---|---|
committer | Ren Zhaohan <zhaohan.ren@intel.com> | 2010-05-11 14:45:13 +0800 |
commit | 4183d5150a7d118d792cc9984505c3df572a848f (patch) | |
tree | 4208eb5bdf6927887bc8a42538c0f90d2946e4cd /va | |
parent | 7ce4ebf0609e219a4b8b5583d1446c6eccf58d5b (diff) | |
download | libva-4183d5150a7d118d792cc9984505c3df572a848f.tar.gz |
Add local vaDisplayIsValid
Diffstat (limited to 'va')
-rw-r--r-- | va/android/va_android.cpp | 6 |
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; |