From e97910a694e5374a1104f1f279de1480deecd02a Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Mon, 18 Feb 2019 14:48:45 +0000 Subject: [PATCH] Fix seek exception unit PiperOrigin-RevId: 234475237 --- .../com/google/android/exoplayer2/ExoPlayerImplInternal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 670353c4f9..d9113e6b64 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 @@ -1472,8 +1472,8 @@ import java.util.concurrent.atomic.AtomicBoolean; seekPosition.windowPositionUs); } catch (IndexOutOfBoundsException e) { // The window index of the seek position was outside the bounds of the timeline. - throw new IllegalSeekPositionException(timeline, seekPosition.windowIndex, - seekPosition.windowPositionUs); + throw new IllegalSeekPositionException( + timeline, seekPosition.windowIndex, C.usToMs(seekPosition.windowPositionUs)); } if (timeline == seekTimeline) { // Our internal timeline is the seek timeline, so the mapped position is correct.