summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhijun He <zhijunhe@google.com>2014-07-17 23:59:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-17 17:59:02 +0000
commit09b9a3b0aadb347ae823ff0396232930c82a7ff1 (patch)
tree32fa99bb85c2a8fd60c0b568b76b44f6d52fb565
parent91be1fbc424035e70688e60306b755893e0fb0ae (diff)
parent7a727021b86c2fb2c9f60af2c999154dce1766eb (diff)
downloadframeworks_av-09b9a3b0aadb347ae823ff0396232930c82a7ff1.zip
frameworks_av-09b9a3b0aadb347ae823ff0396232930c82a7ff1.tar.gz
frameworks_av-09b9a3b0aadb347ae823ff0396232930c82a7ff1.tar.bz2
Merge "stagefright: add error log when create omx component failed" into lmp-dev
-rw-r--r--media/libstagefright/ACodec.cpp2
-rw-r--r--media/libstagefright/omx/OMX.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 9c64d72..fdb401a 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -3989,6 +3989,8 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
if (err == OK) {
break;
+ } else {
+ ALOGW("Allocating component '%s' failed, try next one.", componentName.c_str());
}
node = NULL;
diff --git a/media/libstagefright/omx/OMX.cpp b/media/libstagefright/omx/OMX.cpp
index 22b12d9..cc4770a 100644
--- a/media/libstagefright/omx/OMX.cpp
+++ b/media/libstagefright/omx/OMX.cpp
@@ -233,7 +233,7 @@ status_t OMX::allocateNode(
instance, &handle);
if (err != OMX_ErrorNone) {
- ALOGV("FAILED to allocate omx component '%s'", name);
+ ALOGE("FAILED to allocate omx component '%s'", name);
instance->onGetHandleFailed();