diff options
author | Wei Jia <wjia@google.com> | 2015-05-18 18:25:48 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2015-05-19 11:17:55 -0700 |
commit | 201d8d400eb037547f4f476a838475b13a446007 (patch) | |
tree | b71d11ab99d8435b45d0199444f6c44254b4ffb3 /media/libstagefright/ACodec.cpp | |
parent | 4a95e69406aa2e9896d865962d6d947ebbdac6fc (diff) | |
download | frameworks_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.cpp | 2 |
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(); |