summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2015-05-18 18:25:48 -0700
committerWei Jia <wjia@google.com>2015-05-19 11:17:55 -0700
commit201d8d400eb037547f4f476a838475b13a446007 (patch)
treeb71d11ab99d8435b45d0199444f6c44254b4ffb3 /media/libstagefright/ACodec.cpp
parent4a95e69406aa2e9896d865962d6d947ebbdac6fc (diff)
downloadframeworks_av-201d8d400eb037547f4f476a838475b13a446007.zip
frameworks_av-201d8d400eb037547f4f476a838475b13a446007.tar.gz
frameworks_av-201d8d400eb037547f4f476a838475b13a446007.tar.bz2
ACodec: fix error conversion.
When mime is not supported, need to signal error NAME_NOT_FOUND. Bug: 19620911 Bug: 21207639 Change-Id: Ifd651858827c47a71b3087b914ad1e1e8606183c
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 34bd4c7..4bd20f4 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -5124,7 +5124,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
sp<CodecObserver> observer = new CodecObserver;
IOMX::node_id node = 0;
- status_t err = OMX_ErrorComponentNotFound;
+ status_t err = NAME_NOT_FOUND;
for (size_t matchIndex = 0; matchIndex < matchingCodecs.size();
++matchIndex) {
componentName = matchingCodecs.itemAt(matchIndex).mName.string();