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)