summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-22 16:10:35 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-22 16:10:35 +0100
commit48c8da8d15431c4668c479b40ed366dfc2f0257a (patch)
tree7edfb42f4c330d088d00b95b9d633d597d0fd127 /vdr.c
parent1f2574fb1264113f28098f2db67b378fc20fd333 (diff)
downloadvdr-48c8da8d15431c4668c479b40ed366dfc2f0257a.tar.gz
vdr-48c8da8d15431c4668c479b40ed366dfc2f0257a.tar.bz2
Fixed handling the '0' key for switching between the last two channels1.3.40
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 6e4d1857..35866dbd 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.243 2006/01/22 13:32:41 kls Exp $
+ * $Id: vdr.c 1.244 2006/01/22 16:10:13 kls Exp $
*/
#include <getopt.h>
@@ -727,7 +727,7 @@ int main(int argc, char *argv[])
LastChannel = cDevice::CurrentChannel();
LastChannelChanged = time(NULL);
}
- if (time(NULL) - LastChannelChanged >= Setup.ZapTimeout && LastChannel != PreviousChannel[0] && LastChannel != PreviousChannel[1])
+ if (time(NULL) - LastChannelChanged >= Setup.ZapTimeout && LastChannel != PreviousChannel[PreviousChannelIndex])
PreviousChannel[PreviousChannelIndex ^= 1] = LastChannel;
// Timers and Recordings:
if (!Timers.BeingEdited()) {