player_thread: log played song in "default" log mode

Very few lines to log a song URI when it has been entirely played.
Then mpd logs can be parsed to do statistics.
This commit is contained in:
Sébastien Houzé 2009-07-06 22:29:58 +02:00 committed by Max Kellermann
parent 0275690b5c
commit 468b7d3aea
1 changed files with 6 additions and 0 deletions

View File

@ -567,8 +567,14 @@ play_next_chunk(struct player *player)
static bool
player_song_border(struct player *player)
{
char *uri;
player->xfade = XFADE_UNKNOWN;
uri = song_get_uri(player->song);
g_message("played \"%s\"", uri);
g_free(uri);
music_pipe_free(player->pipe);
player->pipe = dc.pipe;