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

Commit fb621e87 authored by Ronghua Wu's avatar Ronghua Wu
Browse files

media: set codec exception reason.

Bug: 19620911
Change-Id: I13c007bc82b367680e9a15dc6caed6ef8a81d0a6
parent e658285b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -592,8 +592,8 @@ static jthrowable createCodecException(
        break;
    }

    // TODO: propagate reason from MediaCodec.
    int reason = gExceptionReason.reasonHardware;
    int reason =
        (err == DEAD_OBJECT) ? gExceptionReason.reasonReclaimed : gExceptionReason.reasonHardware;
    return (jthrowable)env->NewObject(clazz.get(), ctor, err, actionCode, msgObj.get(), reason);
}