feat(subsync): cancel running syncs when playback moves to other media

Every run now carries an AbortSignal that fires when mpv's path changes or mpv
disconnects. Spawned ffmpeg, VAD, alass, and ffsubsync are killed (whole tree
on Windows so .cmd shims do not leave the real process behind), candidate loops
and alignment yields stop at the next stage, and the subsync lock is released
right away instead of after minutes of stale work.
This commit is contained in:
sudacode committed 2026-11-28 03:23:06 -08:00
1 parent 3b3c6581f4
commit 480c8582d8
7 files changed
+293 -100

No files matched your search

+1
View File
@@ -4,3 +4,4 @@ area: subsync
- Integrated built-in alass-based subtitle syncing with sign/song stripping, framerate and scene-cut/ad-break handling, audio alignment verification across all loaded/embedded/sidecar tracks, and built-in speech-activity audio fallback.
- Added one-click automatic syncing via the subtitle sidebar Sync button and `Ctrl+Alt+S` (`subsync.mode: "auto"`), automatically opening the guided Subtitle Sync modal with diagnostics, file browsing, external engine fallbacks, and manual offset only when guidance is needed.
- In-place sync (`subsync.replace`, on by default) keeps the untouched original next to the subtitle as `<file>.orig` on the first overwrite.
- Switching to other media while a sync is running cancels it right away instead of finishing in the background and blocking the next sync.