changeset 12116:8d476d8a16ae

fixed broken diseqc fetch from channels file
author nicodvb
date Sun, 04 Apr 2004 17:11:37 +0000
parents cfe440920be2
children e1e5e2124dae
files libmpdemux/dvbin.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/dvbin.c	Sun Apr 04 10:38:57 2004 +0000
+++ b/libmpdemux/dvbin.c	Sun Apr 04 17:11:37 2004 +0000
@@ -197,9 +197,10 @@
 			ptr->tone = -1;
 			ptr->inv = INVERSION_AUTO;
 			ptr->cr = FEC_AUTO;
-			if((ptr->diseqc > 4) || (ptr->diseqc < 1))
+			if((ptr->diseqc > 4) || (ptr->diseqc < 0))
 			    continue;
-			ptr->diseqc--;
+			if(ptr->diseqc > 0)
+			    ptr->diseqc--;
 			mp_msg(MSGT_DEMUX, MSGL_V,
 				"NUM: %d, NUM_FIELDS: %d, NAME: %s, FREQ: %d, SRATE: %d, POL: %c, DISEQC: %d, TONE: %d, VPID: %d, APID1: %d, APID2: %d, TPID: %d, PROGID: %d\n",
 				list->NUM_CHANNELS, fields, ptr->name, ptr->freq, ptr->srate, ptr->pol, ptr->diseqc, ptr->tone, ptr->vpid, ptr->apid1, ptr->apid2, ptr->tpid, ptr->progid);