mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- screensaver: move more repeatedly used code to screensaver's code
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1671,8 +1671,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
|
||||
if (playstate == CMoviePlayerGui::PAUSE && (msg == CRCInput::RC_timeout || msg == NeutrinoMessages::EVT_TIMER))
|
||||
{
|
||||
time_t delay = time(NULL) - CScreenSaver::getInstance()->getIdleTime();
|
||||
if (g_settings.screensaver_delay && delay > g_settings.screensaver_delay*60 && !CScreenSaver::getInstance()->isActive())
|
||||
if (CScreenSaver::getInstance()->canStart() && !CScreenSaver::getInstance()->isActive())
|
||||
{
|
||||
videoDecoder->setBlank(true);
|
||||
CScreenSaver::getInstance()->Start();
|
||||
|
Reference in New Issue
Block a user