OSDN Git Service

Update error message
authorAndy McFadden <fadden@android.com>
Wed, 24 Jul 2013 23:35:12 +0000 (16:35 -0700)
committerAndy McFadden <fadden@android.com>
Wed, 24 Jul 2013 23:35:12 +0000 (16:35 -0700)
The color format used for surfaces has two different names.  The
one in the error message is the "native" name, which doesn't mean
anything to external developers.

Change-Id: Ic0561f4ad12970b0e0a60bd17b4e3997af1a9f0e

media/libstagefright/omx/OMXNodeInstance.cpp

index 61a866f..525e18d 100644 (file)
@@ -596,7 +596,8 @@ status_t OMXNodeInstance::createInputSurface(
     CHECK(oerr == OMX_ErrorNone);
 
     if (def.format.video.eColorFormat != OMX_COLOR_FormatAndroidOpaque) {
-        ALOGE("createInputSurface requires AndroidOpaque color format");
+        ALOGE("createInputSurface requires COLOR_FormatSurface "
+              "(AndroidOpaque) color format");
         return INVALID_OPERATION;
     }