aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-player-simple.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-player-simple.el b/emms-player-simple.el
index 14e4f5d..985d3ed 100644
--- a/emms-player-simple.el
+++ b/emms-player-simple.el
@@ -96,7 +96,8 @@ to call the player and ARGS are the command line arguements."
(emms-player-simple-stop))
(defun ,playablep (track)
"Return non-nil when we can play this track."
- (and (memq (emms-track-type track) ,types)
+ (and (executable-find ,command-name)
+ (memq (emms-track-type track) ,types)
(string-match ,regex (emms-track-name track)))))))
;; Global variables