mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix seek exception unit
PiperOrigin-RevId: 234475237
This commit is contained in:
parent
5d8e1784b9
commit
e97910a694
1 changed files with 2 additions and 2 deletions
|
|
@ -1472,8 +1472,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
seekPosition.windowPositionUs);
|
seekPosition.windowPositionUs);
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
// The window index of the seek position was outside the bounds of the timeline.
|
// The window index of the seek position was outside the bounds of the timeline.
|
||||||
throw new IllegalSeekPositionException(timeline, seekPosition.windowIndex,
|
throw new IllegalSeekPositionException(
|
||||||
seekPosition.windowPositionUs);
|
timeline, seekPosition.windowIndex, C.usToMs(seekPosition.windowPositionUs));
|
||||||
}
|
}
|
||||||
if (timeline == seekTimeline) {
|
if (timeline == seekTimeline) {
|
||||||
// Our internal timeline is the seek timeline, so the mapped position is correct.
|
// Our internal timeline is the seek timeline, so the mapped position is correct.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue