diff options
| author | RblSb <msrblsb@gmail.com> | 2020-05-20 14:58:29 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-05-20 14:58:29 +0300 |
| commit | 8c995a8e206950d7dbb2c2eced641f70b38e44f8 (patch) | |
| tree | c00e76869cf715ab0eb0f92dc4bbd1de714c1ee8 /src/client | |
| parent | 97bad11001aeb299e0e8c339af77368e065d215d (diff) | |
Fix short video restart at the end
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/Main.hx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx index 55c6a9a..0ae48b0 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -411,7 +411,7 @@ class Main { return; } if (player.isVideoLoaded()) forceSyncNextTick = false; - if (player.getDuration() < player.getTime()) return; + if (player.getDuration() <= player.getTime()) return; if (!data.getTime.paused) player.play(); else player.pause(); if (Math.abs(time - newTime) < synchThreshold) return; |
