From 91fed47648fbc7ee478a940ebcecf462b5541131 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Dec 2013 11:58:10 +0100 Subject: [PATCH] PlayerThread: log the last song that was played --- src/PlayerThread.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();