mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling of set channel retries
This commit is contained in:
parent
94fa4861f8
commit
ce3046c9d0
4
config.c
4
config.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: config.c 1.11 2000/07/16 14:28:20 kls Exp $
|
* $Id: config.c 1.12 2000/07/21 13:10:50 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -217,7 +217,7 @@ bool cChannel::Switch(cDvbApi *DvbApi)
|
|||||||
if (!DvbApi->Recording()) {
|
if (!DvbApi->Recording()) {
|
||||||
isyslog(LOG_INFO, "switching to channel %d", Index() + 1);
|
isyslog(LOG_INFO, "switching to channel %d", Index() + 1);
|
||||||
CurrentChannel = Index();
|
CurrentChannel = Index();
|
||||||
for (int i = 3; --i;) {
|
for (int i = 3; i--;) {
|
||||||
if (DvbApi->SetChannel(frequency, polarization, diseqc, srate, vpid, apid, ca, pnr))
|
if (DvbApi->SetChannel(frequency, polarization, diseqc, srate, vpid, apid, ca, pnr))
|
||||||
return true;
|
return true;
|
||||||
esyslog(LOG_ERR, "retrying");
|
esyslog(LOG_ERR, "retrying");
|
||||||
|
Loading…
Reference in New Issue
Block a user