[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 5b90306 140/389: Round mpv's playback position to pr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 5b90306 140/389: Round mpv's playback position to prevent float weirdness (n.99999...) |
Date: |
Fri, 3 Dec 2021 11:00:13 -0500 (EST) |
branch: elpa/subed
commit 5b90306b1948e53b911a51da3d911f6789dc1e75
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Round mpv's playback position to prevent float weirdness (n.99999...)
---
subed/subed-mpv.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index ea67ba0..7159ddd 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -228,8 +228,8 @@ See \"List of events\" in mpv(1)."
("property-change"
(when (string= (alist-get 'name json-data) "time-pos")
(let ((pos-msecs (* 1000 (or (alist-get 'data json-data) 0))))
- (setq subed-mpv-playback-position pos-msecs)
- (run-hook-with-args 'subed-mpv-playback-position-hook pos-msecs))))
+ (setq subed-mpv-playback-position (round pos-msecs))
+ (run-hook-with-args 'subed-mpv-playback-position-hook
subed-mpv-playback-position))))
((or "unpause" "file-loaded")
(setq subed-mpv-is-playing t)
(subed-debug "Playing status changed: playing=%s" subed-mpv-is-playing))
- [nongnu] elpa/subed 4522e1a 113/389: Change keybindings to better conform with major mode conventions, (continued)
- [nongnu] elpa/subed 4522e1a 113/389: Change keybindings to better conform with major mode conventions, ELPA Syncer, 2021/12/03
- [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 <=
- [nongnu] elpa/subed 0f3add7 141/389: Temporarily disable point-to-player syncing when adjusting time, ELPA Syncer, 2021/12/03
- [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