Commit e97910a6 by andrewlewis Committed by Andrew Lewis

Fix seek exception unit

PiperOrigin-RevId: 234475237
parent 5d8e1784
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment