summaryrefslogtreecommitdiff
path: root/switchtimer_thread.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2008-08-25 19:04:30 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2008-08-25 19:04:30 +0200
commitbd99ed281a1d552f1d4a8aa3baee89d06e6c72c8 (patch)
treedf6ac895d0c70d5fad45c35ce1be61d2df48235a /switchtimer_thread.c
parent36a1702cb9b22a91dec25844bbb9674cc7e01087 (diff)
downloadvdr-plugin-epgsearch-bd99ed281a1d552f1d4a8aa3baee89d06e6c72c8.tar.gz
vdr-plugin-epgsearch-bd99ed281a1d552f1d4a8aa3baee89d06e6c72c8.tar.bz2
avoid switching if current channel already matches the switch timers one
Diffstat (limited to 'switchtimer_thread.c')
-rw-r--r--switchtimer_thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/switchtimer_thread.c b/switchtimer_thread.c
index 7f6388f..2988498 100644
--- a/switchtimer_thread.c
+++ b/switchtimer_thread.c
@@ -97,7 +97,8 @@ void cSwitchTimerThread::Action(void)
{
LogFile.Log(1,"switching to channel %d", channel->Number());
cString cmd = cString::sprintf("CHAN %d", channel->Number());
- SendViaSVDRP(cmd);
+ if (cDevice::CurrentChannel() != channel->Number())
+ SendViaSVDRP(cmd);
if (switchTimer->unmute && cDevice::PrimaryDevice()->IsMute())
cDevice::PrimaryDevice()->ToggleMute();