mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- audioplayer: move videodecoder/pain away from screensaver() function
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user