aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2018-06-06 13:45:48 +0200
committerPierre Neidhardt <ambrevar@gmail.com>2018-06-06 13:45:48 +0200
commitaefee6ddae1f50811921792ef8d0de8af5e4df89 (patch)
tree35d7d500e8b6a911c9738998bd63639365956a34
parent16c7a42ffea8285ae6af2d70d023ac5af7db93df (diff)
* lisp/emms-player-mpv.el: Replace (if ... nil) with (and ...)
-rw-r--r--lisp/emms-player-mpv.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el
index 55023af..b22aa25 100644
--- a/lisp/emms-player-mpv.el
+++ b/lisp/emms-player-mpv.el
@@ -311,8 +311,7 @@ Error is signaled if mpv binary fails to run."
which is distinct from 'start-command sent' and 'process is running' states.
Used to signal emms via `emms-player-started' and `emms-player-stopped' calls."
(let ((proc (or proc emms-player-mpv-proc)))
- (if proc (process-get proc 'mpv-playing)
- nil)))
+ (and proc (process-get proc 'mpv-playing))))
(defun emms-player-mpv-proc-playing (state &optional proc)
"Set process mpv-playing state flag for `emms-player-mpv-proc-playing-p'."