mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07: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);
|
timestampSearchResult.timestampToUpdate, timestampSearchResult.bytePositionToUpdate);
|
||||||
break;
|
break;
|
||||||
case TimestampSearchResult.TYPE_TARGET_TIMESTAMP_FOUND:
|
case TimestampSearchResult.TYPE_TARGET_TIMESTAMP_FOUND:
|
||||||
|
skipInputUntilPosition(input, timestampSearchResult.bytePositionToUpdate);
|
||||||
markSeekOperationFinished(
|
markSeekOperationFinished(
|
||||||
/* foundTargetFrame= */ true, timestampSearchResult.bytePositionToUpdate);
|
/* foundTargetFrame= */ true, timestampSearchResult.bytePositionToUpdate);
|
||||||
skipInputUntilPosition(input, timestampSearchResult.bytePositionToUpdate);
|
|
||||||
return seekToPosition(
|
return seekToPosition(
|
||||||
input, timestampSearchResult.bytePositionToUpdate, seekPositionHolder);
|
input, timestampSearchResult.bytePositionToUpdate, seekPositionHolder);
|
||||||
case TimestampSearchResult.TYPE_NO_TIMESTAMP:
|
case TimestampSearchResult.TYPE_NO_TIMESTAMP:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue