From b806a8853ca7c6fdc28348e30355497eeace0664 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 21 Dec 2023 16:50:01 +0800 Subject: [PATCH] fix bug #1785 --- src/App.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index cbc1d606..ecda7fc7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -866,7 +866,8 @@ const App = memo(() => { const video = videoRef.current; - if (Math.abs(commandedTimeRef.current - video.currentTime) > 1) video.currentTime = commandedTimeRef.current; + // This was added to re-sync time if file gets reloaded #1674 - but I had to remove this because it broke loop-selected-segments https://github.com/mifi/lossless-cut/discussions/1785#discussioncomment-7852134 + // if (Math.abs(commandedTimeRef.current - video.currentTime) > 1) video.currentTime = commandedTimeRef.current; if (resetPlaybackRate) video.playbackRate = outputPlaybackRate; video.play().catch((err) => {