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

Commit 0c03d5c7 authored by Andreas Huber's avatar Andreas Huber
Browse files

Ignore OMX codec messages once we're in ERROR state.

Change-Id: I2bdf58ed705a641be1f3aec89fa41cada6acfc96
related-to-bug: 4175573
parent b1d3d37c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1912,6 +1912,11 @@ OMXCodec::BufferInfo* OMXCodec::dequeueBufferFromNativeWindow() {
}

void OMXCodec::on_message(const omx_message &msg) {
    if (mState == ERROR) {
        LOGW("Dropping OMX message - we're in ERROR state.");
        return;
    }

    switch (msg.type) {
        case omx_message::EVENT:
        {
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

#define LOG_NDEBUG 0
//#define LOG_NDEBUG 0
#define LOG_TAG "OMXNodeInstance"
#include <utils/Log.h>