summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-03-08 15:06:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-03-08 15:06:37 +0100
commit59b8e71d673f36c20717d361f6e97a8d6ec4ecac (patch)
tree846ce30fc585c2d3dae4d242d66749b7620dd053 /config.c
parenta5c7994c267dba803b319c22c5ce22c514fc29d5 (diff)
downloadvdr-59b8e71d673f36c20717d361f6e97a8d6ec4ecac.tar.gz
vdr-59b8e71d673f36c20717d361f6e97a8d6ec4ecac.tar.bz2
Fixed handling CICAM settings if the first one of a DVB card was FTA
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/config.c b/config.c
index a91cb8ac..ad22d95c 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.88 2002/03/03 16:04:21 kls Exp $
+ * $Id: config.c 1.89 2002/03/08 14:57:08 kls Exp $
*/
#include "config.h"
@@ -962,12 +962,16 @@ cSetup::cSetup(void)
void cSetup::PrintCaCaps(FILE *f, const char *Name)
{
for (int d = 0; d < MAXDVBAPI; d++) {
- if (CaCaps[d][0]) {
- fprintf(f, "CaCaps = %d", d + 1);
- for (int i = 0; i < MAXCACAPS && CaCaps[d][i]; i++)
+ int written = 0;
+ for (int i = 0; i < MAXCACAPS; i++) {
+ if (CaCaps[d][i]) {
+ if (!written++)
+ fprintf(f, "CaCaps = %d", d + 1);
fprintf(f, " %d", CaCaps[d][i]);
+ }
+ }
+ if (written)
fprintf(f, "\n");
- }
}
}