]> git.sesse.net Git - vlc/commitdiff
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 7b5c88226f5cf28c12ab635bb6b38f7448bdb72e..c75d835876e3e1516e9f4bdc263a97424e2a09a9 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);