mirror of
https://github.com/samsonjs/media.git
synced 2026-04-25 14:47:40 +00:00
BinarySeachSeeker: mark seek finished after reading input
This allows to continue the seek in case an error is thrown when reading from the input. PiperOrigin-RevId: 292924295
This commit is contained in:
parent
792d9b39e0
commit
a6f22cd96c
1 changed files with 1 additions and 1 deletions
|
|
@ -203,9 +203,9 @@ public abstract class BinarySearchSeeker {
|
|||
timestampSearchResult.timestampToUpdate, timestampSearchResult.bytePositionToUpdate);
|
||||
break;
|
||||
case TimestampSearchResult.TYPE_TARGET_TIMESTAMP_FOUND:
|
||||
skipInputUntilPosition(input, timestampSearchResult.bytePositionToUpdate);
|
||||
markSeekOperationFinished(
|
||||
/* foundTargetFrame= */ true, timestampSearchResult.bytePositionToUpdate);
|
||||
skipInputUntilPosition(input, timestampSearchResult.bytePositionToUpdate);
|
||||
return seekToPosition(
|
||||
input, timestampSearchResult.bytePositionToUpdate, seekPositionHolder);
|
||||
case TimestampSearchResult.TYPE_NO_TIMESTAMP:
|
||||
|
|
|
|||
Loading…
Reference in a new issue