[vlc-commits] iomx: Adjust ANDROID_API ifdefs to work with honeycomb 11, 12 and 13

Martin Storsjö git at videolan.org
Mon Jul 28 09:52:43 CEST 2014


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Jul 28 10:33:13 2014 +0300| [04451330b6d99f09ce552c8ba1aadeef7e126c2f] | committer: Martin Storsjö

iomx: Adjust ANDROID_API ifdefs to work with honeycomb 11, 12 and 13

This would allow building libiomx-hc.so with -DANDROID_API=13
instead of =11 as right now - using 13 would probably be more
correct as the headers match 3.2.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04451330b6d99f09ce552c8ba1aadeef7e126c2f
---

 modules/codec/omxil/iomx_hwbuffer.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/codec/omxil/iomx_hwbuffer.c b/modules/codec/omxil/iomx_hwbuffer.c
index f62f4ab..b5a22a6 100644
--- a/modules/codec/omxil/iomx_hwbuffer.c
+++ b/modules/codec/omxil/iomx_hwbuffer.c
@@ -30,7 +30,7 @@
 #include <OMX_Core.h>
 #include <OMX_Component.h>
 
-#if ANDROID_API <= 11
+#if ANDROID_API <= 13
 #include <ui/android_native_buffer.h>
 #include <ui/egl/android_natives.h>
 #else
@@ -44,7 +44,7 @@
 #define NO_ERROR 0
 typedef int32_t status_t;
 
-#if ANDROID_API <= 11
+#if ANDROID_API <= 13
 typedef android_native_buffer_t ANativeWindowBuffer_t;
 #endif
 
@@ -81,7 +81,7 @@ int IOMXHWBuffer_Connect( void *window )
     ANativeWindow *anw = (ANativeWindow *)window;
     CHECK_ANW();
 
-#if ANDROID_API > 11
+#if ANDROID_API >= 14
     if (native_window_api_connect( anw, NATIVE_WINDOW_API_MEDIA ) != 0) {
         LOGE( "native_window_api_connect FAIL"  );
         return -EINVAL;
@@ -95,7 +95,7 @@ int IOMXHWBuffer_Disconnect( void *window )
 
     CHECK_ANW();
 
-#if ANDROID_API > 11
+#if ANDROID_API >= 14
     native_window_api_disconnect( anw, NATIVE_WINDOW_API_MEDIA );
 #endif
 
@@ -141,7 +141,7 @@ int IOMXHWBuffer_Setup( void *window, int w, int h, int hal_format, int hw_usage
     err = native_window_set_usage( anw, usage );
     CHECK_ERR();
 
-#if ANDROID_API <= 11
+#if ANDROID_API <= 13
     err = native_window_set_buffers_geometry( anw, w, h, hal_format );
     CHECK_ERR();
 #else



More information about the vlc-commits mailing list