aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMike Kazantsev <mk.fraggod@gmail.com>2018-06-30 20:08:33 +0500
committerfraggod@malediction <mk.fraggod@gmail.com>2018-06-30 20:09:46 +0500
commitb0b406189b96ba9b0773e1c40449a0f0c9abf95e (patch)
tree8af15f87e381d657871604302b96a6e4a6cdc0df /lisp
parent45ee4c54ea4311533c764d7b617b845394c82ae4 (diff)
* lisp/emms-player-mpv.el: make sure socket directory exists for all ipc types
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emms-player-mpv.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el
index 4ddf843..8c4aa66 100644
--- a/lisp/emms-player-mpv.el
+++ b/lisp/emms-player-mpv.el
@@ -117,7 +117,8 @@ support for various feedback and metadata options from mpv."
:group 'emms-player-mpv)
(defcustom emms-player-mpv-ipc-socket
- (concat (file-name-as-directory emms-directory) "mpv-ipc.sock" )
+ (concat (file-name-as-directory emms-directory)
+ "mpv-ipc.sock")
"Unix IPC socket or FIFO to use with mpv --input-* options,
depending on `emms-player-mpv-ipc-method' value and/or mpv version."
:type 'file
@@ -358,9 +359,9 @@ Signals error if mkfifo exits with non-zero code."
"initialize new mpv process as `emms-player-mpv-proc'.
MEDIA-ARGS are used instead of --idle, if specified."
(emms-player-mpv-proc-stop)
+ (unless (file-directory-p (file-name-directory emms-player-mpv-ipc-socket))
+ (make-directory (file-name-directory emms-player-mpv-ipc-socket)))
(when (emms-player-mpv-ipc-fifo-p)
- (unless (file-directory-p (file-name-directory emms-player-mpv-ipc-socket))
- (make-directory (file-name-directory emms-player-mpv-ipc-socket)))
(emms-player-mpv-proc-init-fifo emms-player-mpv-ipc-socket))
(let*
((argv emms-player-mpv-parameters)