- audioplayer: move videodecoder/pain away from screensaver() function

This commit is contained in:
svenhoefer
2014-12-29 21:27:44 +01:00
parent 5f42845160
commit dec7d42ffe

View File

@@ -384,6 +384,11 @@ int CAudioPlayerGui::show()
if (m_screensaver) if (m_screensaver)
{ {
screensaver(false); screensaver(false);
videoDecoder->StopPicture();
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
paint();
if (msg <= CRCInput::RC_MaxRC) { if (msg <= CRCInput::RC_MaxRC) {
// ignore first keypress - just quit the screensaver // ignore first keypress - just quit the screensaver
g_RCInput->clearRCMsg(); g_RCInput->clearRCMsg();
@@ -706,11 +711,11 @@ int CAudioPlayerGui::show()
picture->exec(this, "audio"); picture->exec(this, "audio");
delete picture; delete picture;
pictureviewer = false; pictureviewer = false;
screensaver(false);
videoDecoder->setBlank(true); videoDecoder->setBlank(true);
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg"); videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO); CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
paintLCD(); paintLCD();
screensaver(false);
} }
else if (msg == CRCInput::RC_help) else if (msg == CRCInput::RC_help)
{ {
@@ -2212,9 +2217,6 @@ void CAudioPlayerGui::screensaver(bool on)
{ {
CScreenSaver::getInstance()->Stop(); CScreenSaver::getInstance()->Stop();
m_screensaver = false; m_screensaver = false;
videoDecoder->StopPicture();
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
paint();
m_idletime = time(NULL); m_idletime = time(NULL);
} }
} }