From eff341390c079060d0904a53b7eebe84e2315f3a Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Thu, 22 Sep 2011 19:43:08 +0200 Subject: =?UTF-8?q?Delete=20trailing=20whitespace,=20thanks=20to=20Ville?= =?UTF-8?q?=20Skytt=C3=A4=20for=20patches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switchtimer_thread.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'switchtimer_thread.c') 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); } -- cgit v1.2.3