mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix ExoPlayerTest to use C.TIME_UNSET instead of C.POSITION_UNSET
This inconsistency was exposed by an upcoming change to deprecate `POSITION_UNSET` in favour of `INDEX_UNSET` because position is an ambiguous term between 'byte offset' and 'media position', as shown here. PiperOrigin-RevId: 492470241
This commit is contained in:
parent
5f6fde4d2a
commit
2f8cf947c7
1 changed files with 3 additions and 3 deletions
|
|
@ -2514,7 +2514,7 @@ public final class ExoPlayerTest {
|
|||
.build()
|
||||
.start()
|
||||
.blockUntilEnded(TIMEOUT_MS);
|
||||
assertThat(target.positionMs).isEqualTo(C.POSITION_UNSET);
|
||||
assertThat(target.positionMs).isEqualTo(C.TIME_UNSET);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -2536,7 +2536,7 @@ public final class ExoPlayerTest {
|
|||
.build()
|
||||
.start()
|
||||
.blockUntilEnded(TIMEOUT_MS);
|
||||
assertThat(target.positionMs).isEqualTo(C.POSITION_UNSET);
|
||||
assertThat(target.positionMs).isEqualTo(C.TIME_UNSET);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -12282,7 +12282,7 @@ public final class ExoPlayerTest {
|
|||
|
||||
public PositionGrabbingMessageTarget() {
|
||||
mediaItemIndex = C.INDEX_UNSET;
|
||||
positionMs = C.POSITION_UNSET;
|
||||
positionMs = C.TIME_UNSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue