Commit 7f10800e by olly Committed by Oliver Woodman

Restore wrapping of MediaCodec ISEs in MediaCodecDecoderException

Wrapping MediaCodec ISEs in MediaCodecDecoderException lets us attach
MediaCodecInfo, which contains lots of useful information such as the
MediaCodec name, the codec capabilities, etc.

PiperOrigin-RevId: 323575782
parent bcb9ad22
...@@ -819,7 +819,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer { ...@@ -819,7 +819,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
decoderCounters.ensureUpdated(); decoderCounters.ensureUpdated();
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
if (isMediaCodecException(e)) { if (isMediaCodecException(e)) {
throw createRendererException(e, inputFormat); throw createRendererException(createDecoderException(e, getCodecInfo()), inputFormat);
} }
throw e; throw e;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment