diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2011-09-22 19:43:08 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2011-09-22 19:43:08 +0200 |
commit | eff341390c079060d0904a53b7eebe84e2315f3a (patch) | |
tree | d45d902e7a7022a95a3e9c58346d88c45e0da517 /switchtimer_thread.c | |
parent | be2c5ff1bfdff45d384981816ef692f0179a7f15 (diff) | |
download | vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.gz vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.bz2 |
Delete trailing whitespace, thanks to Ville Skyttä for patches
Diffstat (limited to 'switchtimer_thread.c')
-rw-r--r-- | switchtimer_thread.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/switchtimer_thread.c b/switchtimer_thread.c index 9f48421..9c8e2fc 100644 --- a/switchtimer_thread.c +++ b/switchtimer_thread.c @@ -40,7 +40,7 @@ cSwitchTimerThread::cSwitchTimerThread(void) } cSwitchTimerThread::~cSwitchTimerThread() { - if (m_Active) + if (m_Active) Stop(); } @@ -64,10 +64,10 @@ void cSwitchTimerThread::Stop(void) { Cancel(6); } -void cSwitchTimerThread::Action(void) +void cSwitchTimerThread::Action(void) { m_Active = true; - + // let VDR do its startup if (!cPluginEpgsearch::VDR_readyafterStartup) LogFile.Log(2, "SwitchTimerThread: waiting for VDR to become ready..."); @@ -75,7 +75,7 @@ void cSwitchTimerThread::Action(void) Wait.Wait(1000); time_t nextUpdate = time(NULL); - while (m_Active) + while (m_Active) { time_t now = time(NULL); if (now >= nextUpdate) @@ -84,7 +84,7 @@ void cSwitchTimerThread::Action(void) SwitchTimers.Lock(); LogFile.Log(3,"switch timer check started"); cSwitchTimer* switchTimer = SwitchTimers.First(); - while (switchTimer && m_Active) + while (switchTimer && m_Active) { if (switchTimer->startTime - now < switchTimer->switchMinsBefore*60 + MSG_DELAY + 1) { @@ -94,10 +94,10 @@ void cSwitchTimerThread::Action(void) bool doUnmute = switchTimer->unmute; SwitchTimers.Del(switchTimer); - const cEvent* event = switchTimer->Event(); + const cEvent* event = switchTimer->Event(); if (event && channel && (event->EndTime() >= now)) { - cString Message = cString::sprintf("%s: %s - %s", event->Title(), + cString Message = cString::sprintf("%s: %s - %s", event->Title(), CHANNELNAME(channel), GETTIMESTRING(event)); cString SwitchCmd = cString::sprintf("CHAN %d", channel->Number()); // switch @@ -121,13 +121,13 @@ void cSwitchTimerThread::Action(void) LogFile.Log(1,"switching to channel %d", channel->Number()); if (cDevice::CurrentChannel() != channel->Number()) SendViaSVDRP(SwitchCmd); - + if (doUnmute && cDevice::PrimaryDevice()->IsMute()) cDevice::PrimaryDevice()->ToggleMute(); } - } - + } + if (m_Active) Wait.Wait(1000 * MSG_DELAY); } |