screensaver: move code for ignored msgs to screensaver code

Origin commit data
------------------
Commit: 5395c047f5
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-08-03 (Fri, 03 Aug 2018)

Origin message was:
------------------
- screensaver: move code for ignored msgs to screensaver code
This commit is contained in:
vanhofen
2018-08-03 22:58:24 +02:00
parent d389c381f0
commit 1904543207
3 changed files with 19 additions and 12 deletions

View File

@@ -377,3 +377,20 @@ bool CScreenSaver::isActive()
return true;
return false;
}
bool CScreenSaver::ignoredMsg(neutrino_msg_t msg)
{
/* screensaver will ignore these msgs */
if (
msg == NeutrinoMessages::EVT_CURRENTEPG
|| msg == NeutrinoMessages::EVT_NEXTEPG
|| msg == NeutrinoMessages::EVT_CURRENTNEXT_EPG
|| msg == NeutrinoMessages::EVT_TIMESET
|| msg == NeutrinoMessages::EVT_PROGRAMLOCKSTATUS
|| msg == NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES
|| msg == NeutrinoMessages::EVT_ZAP_GOTAPIDS
|| msg == NeutrinoMessages::EVT_ZAP_GOTPIDS
)
return true;
return false;
}