aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-player-mplayer.el10
1 files changed, 2 insertions, 8 deletions
diff --git a/emms-player-mplayer.el b/emms-player-mplayer.el
index 8dc1d71..728ad03 100644
--- a/emms-player-mplayer.el
+++ b/emms-player-mplayer.el
@@ -91,14 +91,8 @@
(emms-replace-regexp-in-string
(concat ext "$") el name))
emms-player-mplayer-subtitle-extensions)))
- (subtitle nil))
- (cond ((> (length choices) 1)
- (setq subtitle
- (ido-completing-read "Select subtitles: "
- choices)))
- ((= (length choices) 1)
- (setq subtitle (car choices))))
- (when subtitle
+ (subtitle (mapconcat (lambda (el) el) choices ",")))
+ (unless (string= subtitle "")
(setq emms-player-mplayer-parameters
(append emms-player-mplayer-parameters
(list "-sub" subtitle))))))