Chromium Code Reviews
DescriptionCatch CodecException in MediaCodecBridge and return MEDIA_CODEC_ERROR
From API level 21 many of MediaCodec's methods can throw CodecException
without warning. MediaCodecBridge now catches it (and its superclass,
IllegalStateException) and forwards it to callers as MEDIA_CODEC_ERROR.
There is probably opportunity to improve the MediaCodecBridge interface
such that fewer of its methods can fail, but this is simple for now and
fixes an existing crash.
BUG=585978
Committed: https://crrev.com/5906d7d07155203356125d21f34a349442cea5be
Cr-Commit-Position: refs/heads/master@{#379374}
Patch Set 1 : #
Total comments: 6
Patch Set 2 : qinmin@s comments #Patch Set 3 : missed semicolon #
Total comments: 1
Patch Set 4 : dale's comment #Messages
Total messages: 22 (10 generated)
|