aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-24 11:58:10 +0100
committerMax Kellermann <max@duempel.org>2013-12-24 11:58:10 +0100
commit91fed47648fbc7ee478a940ebcecf462b5541131 (patch)
tree3b4b1879e453e4b87994714b0a0596e41e33c4da /src/PlayerThread.cxx
parentc05691b546544e22b5e39847cf8618c9496d3cc1 (diff)
downloadmpd-91fed47648fbc7ee478a940ebcecf462b5541131.tar.gz
mpd-91fed47648fbc7ee478a940ebcecf462b5541131.tar.xz
mpd-91fed47648fbc7ee478a940ebcecf462b5541131.zip
PlayerThread: log the last song that was played
Diffstat (limited to 'src/PlayerThread.cxx')
-rw-r--r--src/PlayerThread.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index 6fb41bf35..356559e37 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -1081,8 +1081,11 @@ Player::Run()
delete cross_fade_tag;
- if (song != nullptr)
+ if (song != nullptr) {
+ const auto uri = song->GetURI();
+ FormatDefault(player_domain, "played \"%s\"", uri.c_str());
song->Free();
+ }
pc.Lock();