OSDN Git Service

Fix build issue on Android
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 29 Sep 2017 02:58:30 +0000 (10:58 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 29 Sep 2017 06:51:19 +0000 (14:51 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
va/Android.mk
va/android/va_android.cpp
va/va_internal.h

index 0f872c3..22f80c8 100644 (file)
@@ -36,7 +36,8 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES := \
        va.c \
        va_trace.c \
-       va_fool.c
+       va_fool.c  \
+       va_str.c
 
 LOCAL_CFLAGS_32 += \
        -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH_32)\"" \
index ab54684..ae96236 100644 (file)
@@ -206,7 +206,7 @@ VAStatus vaPutSurface (
 {
     VADriverContextP ctx;
 
-    if (fool_postp)
+    if (va_fool_postp)
         return VA_STATUS_SUCCESS;
 
     if (draw == NULL)
index c666159..7b8da55 100644 (file)
 #ifndef VA_INTERNAL_H
 #define VA_INTERNAL_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
 #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
 
@@ -35,4 +39,8 @@ int  va_parseConfig(char *env, char *env_value);
 
 VADisplayContextP va_newDisplayContext(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* VA_INTERNAL_H */