aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-05-28 22:59:18 +0300
committerRblSb <msrblsb@gmail.com>2020-05-28 22:59:18 +0300
commit4d7e534a5c64915590f924e6f7420afbfee4bf17 (patch)
tree73861dc2b580f1bad01989a0b69b17d95eec5d29 /src
parentee074d9e901e416e44490af3b43a171727d53728 (diff)
Better video restart fix
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 485fac7..d0bc5eb 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -413,7 +413,7 @@ class Main {
return;
}
if (player.isVideoLoaded()) forceSyncNextTick = false;
- if (player.getDuration() <= player.getTime()) return;
+ if (player.getDuration() <= player.getTime() + synchThreshold) 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