From b59d18fb1184b3af67240c04dda9a99b9c91a114 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Tue, 11 Apr 2006 03:00:00 +0000 Subject: emms-player-mpd: Reset some extra state data on stop. darcs-hash:20060411030023-1bfb2-b53f8e516de55cdd2a7003def861323523971cb7.gz --- emms-player-mpd.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emms-player-mpd.el b/emms-player-mpd.el index 7082a96..35bbaf0 100644 --- a/emms-player-mpd.el +++ b/emms-player-mpd.el @@ -791,6 +791,8 @@ just terminate the timer and mark the player as stopped." (interactive) (emms-cancel-timer emms-player-mpd-status-timer) (setq emms-player-mpd-status-timer nil) + (setq emms-player-mpd-playlist-id nil) + (setq emms-player-mpd-current-song nil) (let ((emms-player-stopped-p t)) (unless no-send (condition-case nil @@ -844,7 +846,8 @@ just terminate the timer and mark the player as stopped." (let ((info (emms-player-mpd-get-alist (emms-player-mpd-parse-response response)))) (when info - (emms-info-mpd-process track info)))) + (emms-info-mpd-process track info) + (emms-track-updated track)))) (defun emms-info-mpd (track &optional info) "Add track information to TRACK. -- cgit v1.2.3