diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-08-25 19:04:30 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-08-25 19:04:30 +0200 |
commit | bd99ed281a1d552f1d4a8aa3baee89d06e6c72c8 (patch) | |
tree | df6ac895d0c70d5fad45c35ce1be61d2df48235a /switchtimer_thread.c | |
parent | 36a1702cb9b22a91dec25844bbb9674cc7e01087 (diff) | |
download | vdr-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.c | 3 |
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(); |