[Mplayer-cvslog] CVS: main/libmpdemux dvbin.c,1.7,1.8

Nico Sabbi CVS syncmail at mplayerhq.hu
Sun Apr 4 19:11:39 CEST 2004


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv7896

Modified Files:
	dvbin.c 
Log Message:
fixed broken diseqc fetch from channels file

Index: dvbin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/dvbin.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- dvbin.c	3 Apr 2004 10:30:46 -0000	1.7
+++ dvbin.c	4 Apr 2004 17:11:37 -0000	1.8
@@ -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);




More information about the MPlayer-cvslog mailing list