aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Houzé <sebastien.houze@gmail.com>2009-07-06 22:29:58 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 22:29:58 +0200
commit468b7d3aeaa0e2de51814263a1ca19d89128f00b (patch)
treea1b811f7c4e004108164006003b81bf6260db551
parent0275690b5cd133f992e9e34d6c76eb134aef26bd (diff)
downloadmpd-468b7d3aeaa0e2de51814263a1ca19d89128f00b.tar.gz
mpd-468b7d3aeaa0e2de51814263a1ca19d89128f00b.tar.xz
mpd-468b7d3aeaa0e2de51814263a1ca19d89128f00b.zip
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.
-rw-r--r--src/player_thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 657968f6c..cffc5d82c 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -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;