summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@gmail.com>2010-05-11 01:14:53 +0800
committerAustin Yuan <shengquan.yuan@gmail.com>2010-05-11 01:14:53 +0800
commit9f1afd586b2923b3e694d6229508ab83b89d7758 (patch)
treeec2803079bb05ba1dba2a27024b8c6a6c1b9bcc5
parent70074679333c236bca857a0242ae34442a4874f6 (diff)
global vaDisplayIsValidPO-ww20.2-videoPO-ww20.1-video
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
-rw-r--r--va/android/va_android.cpp5
-rw-r--r--va/va.c2
-rw-r--r--va/x11/va_x11.c6
3 files changed, 1 insertions, 12 deletions
diff --git a/va/android/va_android.cpp b/va/android/va_android.cpp
index c9c017d..4596657 100644
--- a/va/android/va_android.cpp
+++ b/va/android/va_android.cpp
@@ -282,11 +282,6 @@ VADisplay vaGetDisplay (
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-static int vaDisplayIsValid (VADisplay dpy)
-{
- VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
- return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext);
-}
#ifdef ANDROID
VAStatus vaPutSurface (
diff --git a/va/va.c b/va/va.c
index def7200..97fb753 100644
--- a/va/va.c
+++ b/va/va.c
@@ -64,7 +64,7 @@ extern int trace_flag;
#define VA_MINOR_VERSION (31)
#define VA_VERSION_S "0.31.1"
-static int vaDisplayIsValid(VADisplay dpy)
+int vaDisplayIsValid(VADisplay dpy)
{
VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext);
diff --git a/va/x11/va_x11.c b/va/x11/va_x11.c
index 8aa922c..9a7135c 100644
--- a/va/x11/va_x11.c
+++ b/va/x11/va_x11.c
@@ -219,12 +219,6 @@ VADisplay vaGetDisplay (
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-static int vaDisplayIsValid(VADisplay dpy)
-{
- VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
- return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext);
-}
-
VAStatus vaPutSurface (
VADisplay dpy,
VASurfaceID surface,