Skip to content

Commit

Permalink
Assign ERROR_CODE_IO_BAD_HTTP_STATUS to InvalidResponseCodeException
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 374885599
  • Loading branch information
AquilesCanta authored and ojw28 committed May 21, 2021
1 parent 23d4efa commit 2c2197d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import com.google.android.exoplayer2.trackselection.TrackSelector;
import com.google.android.exoplayer2.trackselection.TrackSelectorResult;
import com.google.android.exoplayer2.upstream.BandwidthMeter;
import com.google.android.exoplayer2.upstream.HttpDataSource;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Clock;
import com.google.android.exoplayer2.util.HandlerWrapper;
Expand Down Expand Up @@ -571,6 +572,8 @@ public boolean handleMessage(Message msg) {
stopInternal(/* forceResetRenderers= */ true, /* acknowledgeStop= */ false);
playbackInfo = playbackInfo.copyWithPlaybackError(e);
}
} catch (HttpDataSource.InvalidResponseCodeException e) {
handleIoException(e, PlaybackException.ERROR_CODE_IO_BAD_HTTP_STATUS);
} catch (BehindLiveWindowException e) {
handleIoException(e, PlaybackException.ERROR_CODE_BEHIND_LIVE_WINDOW);
} catch (IOException e) {
Expand Down

0 comments on commit 2c2197d

Please sign in to comment.