diff options
author | Michael Olson <mwolson@gnu.org> | 2006-04-12 05:26:00 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2006-04-12 05:26:00 +0000 |
commit | 234190f338439c84bc5d58aeaced264efaa424d4 (patch) | |
tree | 627d7b985ba6d4d7a59b0efc0c5cb53b597a5987 | |
parent | b18fa304660f9cf4ce66a79834763e471adf0b40 (diff) |
emms-player-mpd: Don't start the timer upon playing a track if `emms-player-mpd-sync-playlist' is nil.
darcs-hash:20060412052632-1bfb2-8733e8d42b9c6a006c09087655f0a4d59a11e877.gz
-rw-r--r-- | emms-player-mpd.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/emms-player-mpd.el b/emms-player-mpd.el index 6a69174..73cb297 100644 --- a/emms-player-mpd.el +++ b/emms-player-mpd.el @@ -716,13 +716,12 @@ playlist." (setq emms-player-mpd-status-timer (run-at-time t emms-player-mpd-check-interval 'emms-player-mpd-detect-song-change))))) + ;; we only want to play one track, so don't start the timer (emms-player-mpd-send "play" nil (lambda (closure response) - (setq emms-player-mpd-status-timer - (run-at-time t emms-player-mpd-check-interval - 'emms-player-mpd-detect-song-change)))))) + (emms-player-started 'emms-player-mpd))))) (defun emms-player-mpd-start-and-sync-1 (buffer) (when emms-player-mpd-status-timer |