From 4a873b05b48e1b3bca23499494cff40bf6a3e74a Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sun, 2 Jul 2006 01:21:00 +0000 Subject: 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 --- emms-player-mpg321-remote.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emms-player-mpg321-remote.el') 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. -- cgit v1.2.3