iomx: Support building for honeycomb with ANDROID_API=13 as well
authorMartin Storsjö <martin@martin.st>
Mon, 28 Jul 2014 07:58:00 +0000 (10:58 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 28 Jul 2014 07:58:30 +0000 (10:58 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
modules/codec/omxil/iomx.cpp

index 7b5c882..c75d835 100644 (file)
@@ -193,7 +193,7 @@ static OMX_ERRORTYPE iomx_use_buffer(OMX_HANDLETYPE component, OMX_BUFFERHEADERT
     OMXNode* node = (OMXNode*) ((OMX_COMPONENTTYPE*)component)->pComponentPrivate;
     OMXBuffer* info = new OMXBuffer;
     info->dealer = NULL;
-#if ANDROID_API == 11
+#if ANDROID_API <= 13
     info->graphicBuffer = new GraphicBuffer((android_native_buffer_t*) data, false);
 #else
     info->graphicBuffer = new GraphicBuffer((ANativeWindowBuffer*) data, false);