Commit 468b7d3a authored by Sébastien Houzé's avatar Sébastien Houzé Committed by Max Kellermann

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.
parent 0275690b
...@@ -567,8 +567,14 @@ play_next_chunk(struct player *player) ...@@ -567,8 +567,14 @@ play_next_chunk(struct player *player)
static bool static bool
player_song_border(struct player *player) player_song_border(struct player *player)
{ {
char *uri;
player->xfade = XFADE_UNKNOWN; player->xfade = XFADE_UNKNOWN;
uri = song_get_uri(player->song);
g_message("played \"%s\"", uri);
g_free(uri);
music_pipe_free(player->pipe); music_pipe_free(player->pipe);
player->pipe = dc.pipe; player->pipe = dc.pipe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment