Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 201d8d40 authored by Wei Jia's avatar Wei Jia
Browse files

ACodec: fix error conversion.

When mime is not supported, need to signal error NAME_NOT_FOUND.

Bug: 19620911
Bug: 21207639
Change-Id: Ifd651858827c47a71b3087b914ad1e1e8606183c
parent 4a95e694
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();