screensaver: rework timeosd handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: d7ac78c0c2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-07 (Thu, 07 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-01-07 22:36:10 +01:00
parent 291e699330
commit 7be34438f6
3 changed files with 15 additions and 5 deletions

View File

@@ -38,7 +38,7 @@
#include "screensaver.h"
#include <system/debug.h>
#include <gui/infoclock.h>
extern CInfoClock *InfoClock;
#include <video.h>
extern cVideo * videoDecoder;
@@ -84,6 +84,9 @@ void CScreenSaver::Start()
status_mute = CAudioMute::getInstance()->getStatus();
CAudioMute::getInstance()->enableMuteIcon(false);
if(!CInfoClock::getInstance()->isBlocked())
CInfoClock::getInstance()->disableInfoClock();
m_viewer->SetScaling((CPictureViewer::ScalingMode)g_settings.picviewer_scaling);
m_viewer->SetVisible(g_settings.screen_StartX, g_settings.screen_EndX, g_settings.screen_StartY, g_settings.screen_EndY);
@@ -125,7 +128,7 @@ void CScreenSaver::Stop()
if (!OnAfterStop.empty())
OnAfterStop();
else
InfoClock->enableInfoClock();
CInfoClock::getInstance()->enableInfoClock();
}
void* CScreenSaver::ScreenSaverPrg(void* arg)
@@ -281,3 +284,10 @@ void CScreenSaver::paint()
clr.i_color = COL_DARK_GRAY;
}
}
bool CScreenSaver::IsRun()
{
if(thrScreenSaver)
return true;
return false;
}