[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 0f3add7 141/389: Temporarily disable point-to-player
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 0f3add7 141/389: Temporarily disable point-to-player syncing when adjusting time |
Date: |
Fri, 3 Dec 2021 11:00:14 -0500 (EST) |
branch: elpa/subed
commit 0f3add70e2693acb5b09fb91c8258bf6a6006a28
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Temporarily disable point-to-player syncing when adjusting time
This seems to fix some race-condion-y or otherwise hard-to-debug false
movement
of point one subtitle backward or forward when moving subtitles. Taking
point
motion control away from the player while it seeks to the new position
seems to
fix that.
---
subed/subed-srt.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/subed/subed-srt.el b/subed/subed-srt.el
index 61a2d2b..372699e 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -298,6 +298,7 @@ Return point or nil if there is no previous subtitle."
(defun subed-srt--adjust-subtitle-start-relative (msecs)
"Add MSECS milliseconds to start time (use negative value to subtract)."
+ (subed-disable-sync-point-to-player-temporarily)
(let* ((msecs-start (subed-srt--subtitle-msecs-start))
(msecs-new (when msecs-start (+ msecs-start msecs))))
(when msecs-new
@@ -309,6 +310,7 @@ Return point or nil if there is no previous subtitle."
(defun subed-srt--adjust-subtitle-stop-relative (msecs)
"Add MSECS milliseconds to stop time (use negative value to subtract)."
+ (subed-disable-sync-point-to-player-temporarily)
(let* ((msecs-stop (subed-srt--subtitle-msecs-stop))
(msecs-new (when msecs-stop (+ msecs-stop msecs))))
(when msecs-new
- [nongnu] elpa/subed ecbfd7f 119/389: Remove useless (progn ...), (continued)
- [nongnu] elpa/subed ecbfd7f 119/389: Remove useless (progn ...), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 1950bb0 121/389: subed--replay-adjusted-subtitle: Show debug message before doing the deed, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f06d5f8 124/389: Add macro: subed--with-subtitle-replay-disabled, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3fafab8 125/389: Disable subtitle replay during subtitle movement, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 382e83c 126/389: Add more tests for moving subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d1a0b2f 127/389: Remove unnecessary spy-on, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 61cf9ce 129/389: Remove garbage tests for point-to-player syncing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3aa9a71 131/389: Pause player by default when editing subtitle text, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d85f988 136/389: Add keybindings for subed-shift-subtitle-forward/backward, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5b90306 140/389: Round mpv's playback position to prevent float weirdness (n.99999...), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 0f3add7 141/389: Temporarily disable point-to-player syncing when adjusting time,
ELPA Syncer <=
- [nongnu] elpa/subed 3081983 144/389: Add commentary section to header, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c069e23 145/389: subed is named "subed", ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 522017e 146/389: Add packaging information to header, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3bc609d 147/389: Make run-subtitle-time-adjusted-hook not srt specific, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f3fe9d8 148/389: Make increase/decrease-start/stop-time not srt specific, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 53bad4a 149/389: Explain what moving does in general in comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 800d4b3 150/389: Return new start/stop time when adjusting, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6122de0 151/389: Rename adjust-subtitle-start/stop-relative to adjust-subtitle-start/stop, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 06a4681 153/389: Adjusting functions return milliseconds moved, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c7d3fcb 156/389: Add autoloading, ELPA Syncer, 2021/12/03