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
This commit is contained in:
olly 2020-07-28 16:24:10 +01:00 committed by Oliver Woodman
parent bcb9ad22af
commit 7f10800e25

View File

@ -819,7 +819,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
decoderCounters.ensureUpdated();
} catch (IllegalStateException e) {
if (isMediaCodecException(e)) {
throw createRendererException(e, inputFormat);
throw createRendererException(createDecoderException(e, getCodecInfo()), inputFormat);
}
throw e;
}