aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kazantsev <mk.fraggod@gmail.com>2021-06-14 20:00:47 +0500
committerfraggod@malediction <mk.fraggod@gmail.com>2021-06-14 20:00:47 +0500
commit231741e58222b4707f5686176670d2fe47cfa947 (patch)
tree52b3e6a60bf5866b660ec4a1613c213309650ec5
parentd4d9171ce1076ba2ca9d022cf8228aeb3d31fb64 (diff)
* emms-player-mpv.el: explicitly unpause after switching to a new track
-rw-r--r--emms-player-mpv.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/emms-player-mpv.el b/emms-player-mpv.el
index 399ec82..72b2cb5 100644
--- a/emms-player-mpv.el
+++ b/emms-player-mpv.el
@@ -224,7 +224,7 @@ runs 'stop'.")
(defvar emms-player-mpv-event-connect-hook nil
- "Normal hook run right after establishing new JSON IPC connection to mpv.
+ "Normal hook run right after establishing new JSON IPC connection to mpv.
Run before `emms-player-mpv-ipc-connect-command', if any.
Best place to send any `observe_property', `request_log_messages',
`enable_event' commands.
@@ -804,7 +804,7 @@ if there was any issue when trying to start it initially."
(emms-player-mpv-cmd mpv-cmd
(lambda (_mpv-data _mpv-error)
(emms-player-mpv-cmd mpv-cmd)
- (emms-player-mpv-cmd `(set pause no))))))
+ (emms-player-mpv-cmd '(set pause no))))))
(defun emms-player-mpv-start (track)
(setq emms-player-mpv-stopped nil)
@@ -825,7 +825,8 @@ if there was any issue when trying to start it initially."
track-name 'replace))
(start-func (lambda ()
(emms-player-mpv-cmd start-cmd
- (apply-partially #'emms-player-mpv-start-error-handler ',start-cmd)))))
+ (apply-partially #'emms-player-mpv-start-error-handler ',start-cmd))
+ (emms-player-mpv-cmd '(set pause no)))))
(if emms-player-mpv-ipc-stop-command
(setq emms-player-mpv-ipc-stop-command start-func)
(funcall start-func))))))