diff options
author | Max Kellermann <max@duempel.org> | 2013-12-24 11:58:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-24 11:58:10 +0100 |
commit | 91fed47648fbc7ee478a940ebcecf462b5541131 (patch) | |
tree | 3b4b1879e453e4b87994714b0a0596e41e33c4da | |
parent | c05691b546544e22b5e39847cf8618c9496d3cc1 (diff) | |
download | mpd-91fed47648fbc7ee478a940ebcecf462b5541131.tar.gz mpd-91fed47648fbc7ee478a940ebcecf462b5541131.tar.xz mpd-91fed47648fbc7ee478a940ebcecf462b5541131.zip |
PlayerThread: log the last song that was played
-rw-r--r-- | src/PlayerThread.cxx | 5 |
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(); |