diff options
author | Michael Olson <mwolson@gnu.org> | 2006-04-11 03:00:00 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2006-04-11 03:00:00 +0000 |
commit | b59d18fb1184b3af67240c04dda9a99b9c91a114 (patch) | |
tree | 21ec6b95df93b241e9e91a75ac0951775d981584 | |
parent | 4dc6b1a629bc707b9ab8be5064b5c038a50a7aa9 (diff) |
emms-player-mpd: Reset some extra state data on stop.
darcs-hash:20060411030023-1bfb2-b53f8e516de55cdd2a7003def861323523971cb7.gz
-rw-r--r-- | emms-player-mpd.el | 5 |
1 files changed, 4 insertions, 1 deletions
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. |