aboutsummaryrefslogtreecommitdiff
path: root/emms-player-mpd.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-04-11 03:00:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-04-11 03:00:00 +0000
commitb59d18fb1184b3af67240c04dda9a99b9c91a114 (patch)
tree21ec6b95df93b241e9e91a75ac0951775d981584 /emms-player-mpd.el
parent4dc6b1a629bc707b9ab8be5064b5c038a50a7aa9 (diff)
emms-player-mpd: Reset some extra state data on stop.
darcs-hash:20060411030023-1bfb2-b53f8e516de55cdd2a7003def861323523971cb7.gz
Diffstat (limited to 'emms-player-mpd.el')
-rw-r--r--emms-player-mpd.el5
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.