mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Update isMediaCodecException to return true for generic ISE on API 21+ if the
stack trace contains MediaCodec. PiperOrigin-RevId: 254781909
This commit is contained in:
parent
0ddd3c2bd0
commit
883b3c8783
1 changed files with 2 additions and 2 deletions
|
|
@ -1743,8 +1743,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||
}
|
||||
|
||||
private static boolean isMediaCodecException(IllegalStateException error) {
|
||||
if (Util.SDK_INT >= 21) {
|
||||
return isMediaCodecExceptionV21(error);
|
||||
if (Util.SDK_INT >= 21 && isMediaCodecExceptionV21(error)) {
|
||||
return true;
|
||||
}
|
||||
StackTraceElement[] stackTrace = error.getStackTrace();
|
||||
return stackTrace.length > 0 && stackTrace[0].getClassName().equals("android.media.MediaCodec");
|
||||
|
|
|
|||
Loading…
Reference in a new issue