[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 4e31010 062/389: mpv returns nil as "time-pos" in at
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 4e31010 062/389: mpv returns nil as "time-pos" in at least one circumstance |
Date: |
Fri, 3 Dec 2021 10:59:57 -0500 (EST) |
branch: elpa/subed
commit 4e3101042364e2ca063d0eaba915ff792bbe6d64
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
mpv returns nil as "time-pos" in at least one circumstance
---
subed/subed-mpv.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index e1cccd5..ea67ba0 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -227,7 +227,7 @@ See \"List of events\" in mpv(1)."
(pcase event
("property-change"
(when (string= (alist-get 'name json-data) "time-pos")
- (let ((pos-msecs (* 1000 (alist-get 'data json-data))))
+ (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))))
((or "unpause" "file-loaded")
- [nongnu] elpa/subed bbd239a 042/389: subed-srt--regenerate-ids: Wrap function body in atomic-change-group, (continued)
- [nongnu] elpa/subed bbd239a 042/389: subed-srt--regenerate-ids: Wrap function body in atomic-change-group, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8790abf 048/389: Add subed-srt-validate, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7d76a35 049/389: Simplify subed-srt-move-to-subtitle-text, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 821b259 045/389: subed-srt--regenerate-ids: Make this a public function, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d3d2013 050/389: Look for stop time only on the relevant line, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 042941c 051/389: Fix docstrings, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 4e50796 052/389: Fix subed-srt-backward-subtitle-id, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 86914b4 053/389: Add more tests for moving to next/previous subtitle ID, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6391996 056/389: Kill debugging buffer+window in subed-disable-debugging, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 0fe0c82 059/389: When opening debug window, always split horizontally, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 4e31010 062/389: mpv returns nil as "time-pos" in at least one circumstance,
ELPA Syncer <=
- [nongnu] elpa/subed 1c8e0d1 064/389: Sanitize separator between start and stop time, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3c1a1b4 065/389: Don't validate anything if buffer is empty, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ce14b0d 074/389: Adjust comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8fa0f6c 078/389: Remove debugging messages, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 96e7fcf 086/389: Add subed--get-seconds-move, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 189e5aa 088/389: Make more functions available format-agnosticly, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 14d52d7 089/389: Add subed--for-each-subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7710790 090/389: Add subed-move-subtitle-forward/backward, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3511026 091/389: Move utilities to the top, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 81aca87 008/389: Be more robust when moving forward/backward to subtitle text, ELPA Syncer, 2021/12/03