aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-05-20 14:58:29 +0300
committerRblSb <msrblsb@gmail.com>2020-05-20 14:58:29 +0300
commit8c995a8e206950d7dbb2c2eced641f70b38e44f8 (patch)
treec00e76869cf715ab0eb0f92dc4bbd1de714c1ee8 /src
parent97bad11001aeb299e0e8c339af77368e065d215d (diff)
Fix short video restart at the end
Diffstat (limited to 'src')
-rw-r--r--src/client/Main.hx2
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;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage