aboutsummaryrefslogtreecommitdiff
path: root/emms-player-mpd.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-01-04 08:13:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-01-04 08:13:00 +0000
commit4bc3739cc8fa888a9708285f50196f2f574b0201 (patch)
tree598032401ba54d5754776839da818523892640e8 /emms-player-mpd.el
parentb64ef4cef7b58b20a952d78638125efd21a185ac (diff)
Make emms-player-mpd work with emms-playing-time.
darcs-hash:20060104081359-1bfb2-a0a8fad9d64ef84432c8698285f9c8293425152d.gz
Diffstat (limited to 'emms-player-mpd.el')
-rw-r--r--emms-player-mpd.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emms-player-mpd.el b/emms-player-mpd.el
index fff4135..f74fd7a 100644
--- a/emms-player-mpd.el
+++ b/emms-player-mpd.el
@@ -341,10 +341,12 @@ This is usually called by a timer."
(null song)
(string= song emms-player-mpd-current-song))
(setq emms-player-mpd-current-song song)
+ (run-hooks 'emms-player-stopped-hook)
(with-current-emms-playlist
(emms-playlist-select (progn
(goto-line (1+ (string-to-number song)))
- (point)))))))
+ (point))))
+ (run-hooks 'emms-player-started-hook))))
(defun emms-player-mpd-get-filename (file)
"Turn FILE into something that MusicPD can understand.