diff options
author | forcer <forcer> | 2006-06-17 02:35:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2006-06-17 02:35:00 +0000 |
commit | f5c591cdd5ca4351f7ec5070206ba237506e8638 (patch) | |
tree | d792c26e0ea4114febebb96f520d3bd96c0bdec2 | |
parent | 5fa90c9bbe89551ad6b62a008709f2359e754ae0 (diff) |
define-emms-simple-player: Check for existence of the player executable.
darcs-hash:20060617023535-2189f-d285035e40953c1c8512d823c1332266294a5f4e.gz
-rw-r--r-- | emms-player-simple.el | 3 |
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 |