summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-20 16:07:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-20 16:07:56 +0200
commit01ad12975c2a3657440a0b2614d570107998c275 (patch)
tree17bc3a47b75e1a5e2ba103e66bc82d84778bb8c2
parentff127786d092c2235ec5f93960038d2d38182099 (diff)
downloadvdr-01ad12975c2a3657440a0b2614d570107998c275.tar.gz
vdr-01ad12975c2a3657440a0b2614d570107998c275.tar.bz2
Fixed skipping unavailable channels when zapping downwards
-rw-r--r--HISTORY1
-rw-r--r--device.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 1487aee5..d554f9a0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1632,3 +1632,4 @@ Video Disk Recorder Revision History
- Frequency values for cable and terrestrial channels in 'channels.conf' can
now be given either in MHz, kHz or Hz. The actual value given will be multiplied
by 1000 until it is larger than 1000000.
+- Fixed skipping unavailable channels when zapping downwards.
diff --git a/device.c b/device.c
index bfe4edbc..eccacaa3 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.28 2002/10/19 11:48:02 kls Exp $
+ * $Id: device.c 1.29 2002/10/20 16:05:51 kls Exp $
*/
#include "device.h"
@@ -328,7 +328,7 @@ bool cDevice::SwitchChannel(int Direction)
// try only channels which are currently available
if (PrimaryDevice()->ProvidesChannel(channel, Setup.PrimaryLimit) || GetDevice(channel, 0))
break;
- n = channel->Number() + 1;
+ n = channel->Number() + Direction;
}
if (channel) {
int d = n - first;