aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-02 21:16:51 +0100
committerMax Kellermann <max@duempel.org>2010-01-02 21:16:51 +0100
commit915182bcb855f114703ddbf8849047c1a9ca43c1 (patch)
tree99d56534e65b5184a9f5f103e9bc42140f2bab05 /src/player_thread.c
parentd3b763a48c09a60a0c0b5ccb6cccd9376875c470 (diff)
downloadmpd-915182bcb855f114703ddbf8849047c1a9ca43c1.tar.gz
mpd-915182bcb855f114703ddbf8849047c1a9ca43c1.tar.xz
mpd-915182bcb855f114703ddbf8849047c1a9ca43c1.zip
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.
Diffstat (limited to '')
-rw-r--r--src/player_thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 37b4ed5b4..3e234c4ff 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -736,6 +736,8 @@ player_song_border(struct player *player)
music_pipe_free(player->pipe);
player->pipe = player->dc->pipe;
+ audio_output_all_song_border();
+
if (!player_wait_for_decoder(player))
return false;