File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/player Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -859,14 +859,8 @@ public void setRecovery() {
859859 final long windowPos = simpleExoPlayer .getCurrentPosition ();
860860 final long duration = simpleExoPlayer .getDuration ();
861861
862- if (windowPos > 0
863- // Sometimes (e.g. when the playback ended) the windowPos is a few milliseconds
864- // higher than the duration. Due to this a little buffer (100ms) was introduced.
865- // See also https://github.com/TeamNewPipe/NewPipe/pull/7195#issuecomment-962624380
866- && windowPos <= duration + 100
867- ) {
868- setRecovery (queuePos , Math .min (windowPos , duration ));
869- }
862+ // No checks due to https://github.com/TeamNewPipe/NewPipe/pull/7195#issuecomment-962624380
863+ setRecovery (queuePos , Math .max (0 , Math .min (windowPos , duration )));
870864 }
871865
872866 private void setRecovery (final int queuePos , final long windowPos ) {
You can’t perform that action at this time.
0 commit comments