mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed skipping unavailable channels when zapping downwards
This commit is contained in:
parent
ff127786d0
commit
01ad12975c
1
HISTORY
1
HISTORY
@ -1632,3 +1632,4 @@ Video Disk Recorder Revision History
|
|||||||
- Frequency values for cable and terrestrial channels in 'channels.conf' can
|
- 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
|
now be given either in MHz, kHz or Hz. The actual value given will be multiplied
|
||||||
by 1000 until it is larger than 1000000.
|
by 1000 until it is larger than 1000000.
|
||||||
|
- Fixed skipping unavailable channels when zapping downwards.
|
||||||
|
4
device.c
4
device.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "device.h"
|
||||||
@ -328,7 +328,7 @@ bool cDevice::SwitchChannel(int Direction)
|
|||||||
// try only channels which are currently available
|
// try only channels which are currently available
|
||||||
if (PrimaryDevice()->ProvidesChannel(channel, Setup.PrimaryLimit) || GetDevice(channel, 0))
|
if (PrimaryDevice()->ProvidesChannel(channel, Setup.PrimaryLimit) || GetDevice(channel, 0))
|
||||||
break;
|
break;
|
||||||
n = channel->Number() + 1;
|
n = channel->Number() + Direction;
|
||||||
}
|
}
|
||||||
if (channel) {
|
if (channel) {
|
||||||
int d = n - first;
|
int d = n - first;
|
||||||
|
Loading…
Reference in New Issue
Block a user