mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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:
parent
bcb9ad22af
commit
7f10800e25
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user