aboutsummaryrefslogtreecommitdiff
path: root/emms-player-mpg321-remote.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-07-02 01:21:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-07-02 01:21:00 +0000
commit4a873b05b48e1b3bca23499494cff40bf6a3e74a (patch)
treeda2eee3e961a92200d3ddc3e92846f4d74deba8d /emms-player-mpg321-remote.el
parentaccfde0f1a53e921406bb352fc5c3081ef9dbe97 (diff)
Allow player to set the exact elapsed time of a track. emms-player-mpd and emms-player-mpg321-remote both need this.
darcs-hash:20060702012131-1bfb2-3e6229d68adf0d78574e0fc6cd1c1a4438c870c3.gz
Diffstat (limited to 'emms-player-mpg321-remote.el')
-rw-r--r--emms-player-mpg321-remote.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emms-player-mpg321-remote.el b/emms-player-mpg321-remote.el
index be5f63f..f97a0d8 100644
--- a/emms-player-mpg321-remote.el
+++ b/emms-player-mpg321-remote.el
@@ -159,8 +159,8 @@ For example: (list \"-o\" \"alsa\")"
((string= cmd "@F")
;; even though a timer is constantly updating this variable,
;; updating it here will cause it to stay pretty much in sync.
- (setq emms-playing-time
- (truncate (string-to-number (nth 3 data)))))))))
+ (run-hook-with-args 'emms-player-time-set-functions
+ (truncate (string-to-number (nth 3 data)))))))))
(defun emms-player-mpg321-remote-start-playing (track)
"Start playing a song by telling the remote process to play it.