From 33fa987b32b0f59fb29308a293a46da2b3fa0106 Mon Sep 17 00:00:00 2001 From: aquilescanta Date: Fri, 23 Jul 2021 19:31:56 +0100 Subject: [PATCH] Assign ERROR_CODE_IO_UNSPECIFIED to unclassified IOExceptions The reason this was not an IO error code is that before other IOExceptions were classified, this catch would grab non-IO error codes, like ParserException. Now that we are getting closer to the final state, we can assume IOExceptions are ok to classify as IO error codes (unlike, for example, ParserExceptions or DrmSessionExceptions). PiperOrigin-RevId: 386496752 --- .../com/google/android/exoplayer2/ExoPlayerImplInternal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java b/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java index 5821f07cf0..27e6fd6b0e 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java @@ -597,7 +597,7 @@ import java.util.concurrent.atomic.AtomicBoolean; } catch (BehindLiveWindowException e) { handleIoException(e, PlaybackException.ERROR_CODE_BEHIND_LIVE_WINDOW); } catch (IOException e) { - handleIoException(e, PlaybackException.ERROR_CODE_UNSPECIFIED); + handleIoException(e, PlaybackException.ERROR_CODE_IO_UNSPECIFIED); } catch (RuntimeException e) { ExoPlaybackException error = ExoPlaybackException.createForUnexpected(e); Log.e(TAG, "Playback error", error);