From 915182bcb855f114703ddbf8849047c1a9ca43c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 2 Jan 2010 21:16:51 +0100 Subject: output_all: reset elapsed_time at song border Another quirk fixed: after the last chunk of a song has been played, the "elapsed_time" variable is set to the chunk's time stamp. When the client receives the PLAYER idle event and asks MPD for the current time stamp, MPD will return the last time stamp of the previous song when it hasn't played the first chunk of the current song yet. --- src/output_all.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/output_all.h') diff --git a/src/output_all.h b/src/output_all.h index 603cb30a2..8c3f1e80d 100644 --- a/src/output_all.h +++ b/src/output_all.h @@ -141,6 +141,12 @@ audio_output_all_drain(void); void audio_output_all_cancel(void); +/** + * Indicate that a new song will begin now. + */ +void +audio_output_all_song_border(void); + /** * Returns the "elapsed_time" stamp of the most recently finished * chunk. A negative value is returned when no chunk has been -- cgit v1.2.3