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

Commit 8b152566 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

Merge "OMXCodec: enhance error handling of OMX IL client"

parents 5b15adfe 520c3c74
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2048,10 +2048,14 @@ int64_t OMXCodec::getDecodingTimeUs() {
}

void OMXCodec::on_message(const omx_message &msg) {
    // even in error state, we still need to process EMPTY_BUFFER_DONE
    // and FILL_BUFFER_DONE event, or we will run into mediaserver crash issue
    if (mState == ERROR) {
        if (msg.type == omx_message::EVENT) {
            ALOGW("Dropping OMX message - we're in ERROR state.");
            return;
        }
    }

    switch (msg.type) {
        case omx_message::EVENT: