mirror of
https://github.com/androidx/media.git
synced 2025-05-09 16:40:55 +08: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
@ -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…
x
Reference in New Issue
Block a user