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

Commit 48163e06 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Don't send unneeded messages.

This is significantly faster, and doesn't caused messages to pile
up on a looper that might not be processing them.

Change-Id: I2d3536d1f12c71a214c181523dcd60810de3029d
parent 56e0d800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -782,7 +782,7 @@ final public class MediaCodec {

    private void postEventFromNative(
            int what, int arg1, int arg2, Object obj) {
        if (mEventHandler != null) {
        if (mEventHandler != null && mNotificationCallback != null) {
            Message msg = mEventHandler.obtainMessage(what, arg1, arg2, obj);
            mEventHandler.sendMessage(msg);
        }