aboutsummaryrefslogtreecommitdiff
path: root/emms-player-mpg321-remote.el
diff options
context:
space:
mode:
authorDamien Elmes <emms@repose.cx>2006-06-22 11:14:00 +0000
committerDamien Elmes <emms@repose.cx>2006-06-22 11:14:00 +0000
commit859fe8dd6b7d0a525fc15d31a84844ff36da1cb6 (patch)
tree18e11487109acee21c659a80112a3238d30a6b63 /emms-player-mpg321-remote.el
parenta3a19b09ccbb3b9909d3ce50a21b8fe3ca2636b8 (diff)
browser: uniquify track names, mpg321-remote: restart dead process
darcs-hash:20060622111421-4e3e3-d843dafdb0245f9e08c032ad43bed6b2dc10c701.gz
Diffstat (limited to 'emms-player-mpg321-remote.el')
-rw-r--r--emms-player-mpg321-remote.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/emms-player-mpg321-remote.el b/emms-player-mpg321-remote.el
index 52453b7..be5f63f 100644
--- a/emms-player-mpg321-remote.el
+++ b/emms-player-mpg321-remote.el
@@ -127,13 +127,17 @@ For example: (list \"-o\" \"alsa\")"
"Sentinel for determining the end of process"
(when (or (eq (process-status proc) 'exit)
(eq (process-status proc) 'signal))
- (emms-player-stopped)))
+ ;; reset
+ (setq emms-player-mpg321-remote-ignore-stop 0)
+ (message "Remote process died!")))
(defun emms-player-mpg321-remote-send (text)
"Send TEXT to the mpg321 remote process, and add a newline."
- (let ((proc (emms-player-mpg321-remote-process)))
+ (let (proc)
;; we shouldn't be trying to send to a dead process
- (assert proc)
+ (unless (emms-player-mpg321-remote-running-p)
+ (emms-player-mpg321-remote-start-process))
+ (setq proc (emms-player-mpg321-remote-process))
(process-send-string proc (concat text "\n"))))
;; --------------------------------------------------