summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-07-21 13:10:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-07-21 13:10:50 +0200
commitce3046c9d0e1b6c6ad579d7cefa9bf7a5a91baba (patch)
tree065936c6a789fb5aa43929883d0d92402f19928a /config.c
parent94fa4861f8cc20f6c1b50a6d9f4f25ad6d3ce115 (diff)
downloadvdr-ce3046c9d0e1b6c6ad579d7cefa9bf7a5a91baba.tar.gz
vdr-ce3046c9d0e1b6c6ad579d7cefa9bf7a5a91baba.tar.bz2
Fixed handling of set channel retries
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 6df847c0..872e4f21 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* 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"
@@ -217,7 +217,7 @@ bool cChannel::Switch(cDvbApi *DvbApi)
if (!DvbApi->Recording()) {
isyslog(LOG_INFO, "switching to channel %d", Index() + 1);
CurrentChannel = Index();
- for (int i = 3; --i;) {
+ for (int i = 3; i--;) {
if (DvbApi->SetChannel(frequency, polarization, diseqc, srate, vpid, apid, ca, pnr))
return true;
esyslog(LOG_ERR, "retrying");