From 1ed07af6a5316618841ede4309da5b40ef8dd209 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 25 May 2018 10:27:49 +0200 Subject: [PATCH] - audioplayer: don't remove station-logo immediately; ... this allows the usage of station-logo as screensaver Signed-off-by: Thilo Graf # Conflicts: # src/gui/audioplayer.cpp --- src/gui/audioplayer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index 46460b896..eaab76730 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include @@ -1754,6 +1755,7 @@ void CAudioPlayerGui::paintCover() { const CAudioMetaData meta = CAudioPlayer::getInstance()->getMetaData(); + // try folder.jpg first m_cover = m_curr_audiofile.Filename.substr(0, m_curr_audiofile.Filename.rfind('/')) + "/folder.jpg"; m_stationlogo = false; @@ -2007,6 +2009,12 @@ void CAudioPlayerGui::stop() if (CAudioPlayer::getInstance()->getState() != CBaseDec::STOP) CAudioPlayer::getInstance()->stop(); + if (m_stationlogo) + { + unlink(m_cover.c_str()); + m_stationlogo = false; + } + cleanupCovers(); if (m_streamripper_active)