mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Improved skipping channels that are (currently) not available (cont'd, fix, Transfer Mode blocked channels)
This commit is contained in:
parent
f78f51431d
commit
b2b46e3630
3
device.c
3
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.24 2002/10/06 11:31:52 kls Exp $
|
* $Id: device.c 1.25 2002/10/06 13:49:38 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@ -313,6 +313,7 @@ bool cDevice::SwitchChannel(int Direction)
|
|||||||
if (Direction) {
|
if (Direction) {
|
||||||
int n = CurrentChannel() + Direction;
|
int n = CurrentChannel() + Direction;
|
||||||
int first = n;
|
int first = n;
|
||||||
|
PrimaryDevice()->StopReplay(); // otherwise a running Transfer Mode would block channels
|
||||||
cChannel *channel;
|
cChannel *channel;
|
||||||
while ((channel = Channels.GetByNumber(n)) != NULL) {
|
while ((channel = Channels.GetByNumber(n)) != NULL) {
|
||||||
// try only channels which are currently available
|
// try only channels which are currently available
|
||||||
|
Loading…
Reference in New Issue
Block a user