OSDN Git Service

The qcom decoder requires that the output buffers be allocated by the component for...
authorAndreas Huber <andih@google.com>
Fri, 4 Sep 2009 14:48:51 +0000 (07:48 -0700)
committerAndreas Huber <andih@google.com>
Tue, 8 Sep 2009 18:38:14 +0000 (11:38 -0700)
media/libstagefright/OMXCodec.cpp

index de808e5..d01d6af 100644 (file)
@@ -191,7 +191,7 @@ sp<OMXCodec> OMXCodec::Create(
 
         status_t err = omx->allocate_node(componentName, &node);
         if (err == OK) {
-            LOGV("Successfully allocated OMX node '%s'", componentName);
+            LOGI("Successfully allocated OMX node '%s'", componentName);
             break;
         }
     }
@@ -216,6 +216,10 @@ sp<OMXCodec> OMXCodec::Create(
         quirks |= kRequiresLoadedToIdleAfterAllocation;
         quirks |= kRequiresAllocateBufferOnInputPorts;
     }
+    if (!strncmp(componentName, "OMX.qcom.video.decoder.", 23)) {
+        // XXX Required on P....on only.
+        quirks |= kRequiresAllocateBufferOnOutputPorts;
+    }
 
     sp<OMXCodec> codec = new OMXCodec(
             omx, node, quirks, createEncoder, mime, componentName,