summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-09-13 16:30:51 -0700
committerJames Dong <jdong@google.com>2010-09-14 14:39:32 -0700
commita1abc1a76741914c7bc43f1df9e32744f023ab75 (patch)
tree9ec3b7884558789d3ac2d6855f986a6b340bc5ef /media/libstagefright/OMXCodec.cpp
parente0aed6ddcb4e3c301b80aa26706b6052dab42c41 (diff)
downloadframeworks_av-a1abc1a76741914c7bc43f1df9e32744f023ab75.zip
frameworks_av-a1abc1a76741914c7bc43f1df9e32744f023ab75.tar.gz
frameworks_av-a1abc1a76741914c7bc43f1df9e32744f023ab75.tar.bz2
Add some explicit error log messages
Change-Id: I8a69157b75a67f0d3c19f05775a8cb0629232299
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 165cec9..fd23b61 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -811,8 +811,7 @@ status_t OMXCodec::isColorFormatSupported(
if (OMX_ErrorNone != mOMX->getParameter(
mNode, OMX_IndexParamVideoPortFormat,
&portFormat, sizeof(portFormat))) {
-
- return UNKNOWN_ERROR;
+ break;
}
// Make sure that omx component does not overwrite
// the incremented index (bug 2897413).
@@ -832,6 +831,8 @@ status_t OMXCodec::isColorFormatSupported(
break;
}
}
+
+ LOGE("color format %d is not supported", colorFormat);
return UNKNOWN_ERROR;
}