adzap: allow user-definable zap back time > 9 min

Origin commit data
------------------
Branch: ni/coolstream
Commit: ca6d1f69ee
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-03-01 (Tue, 01 Mar 2016)

Origin message was:
------------------
- adzap: allow user-definable zap back time > 9 min

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-03-01 09:53:55 +01:00
parent 6160cf9291
commit 7251798998
3 changed files with 26 additions and 5 deletions

View File

@@ -784,10 +784,10 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
case CRCInput::RC_page_up:
if(isCurrentEPG(channel_id)){
int zapBackPeriod = g_settings.adzap_zapBackPeriod / 60;
if (zapBackPeriod < 9)
if (zapBackPeriod < 120)
zapBackPeriod++;
if (zapBackPeriod > 9)
zapBackPeriod = 9;
if (zapBackPeriod > 120)
zapBackPeriod = 120;
g_settings.adzap_zapBackPeriod = zapBackPeriod * 60;
showTimerEventBar(true, true);
}