From: Mike L. <mla...@us...> - 2004-11-24 03:00:01
|
Update of /cvsroot/xine/xine-lib/src/input In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11859 Modified Files: input_dvb.c Log Message: add support for slightly non-standard? ?zap channels.conf files Index: input_dvb.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/input/input_dvb.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- input_dvb.c 22 Nov 2004 11:40:34 -0000 1.47 +++ input_dvb.c 24 Nov 2004 02:58:20 -0000 1.48 @@ -671,7 +671,12 @@ if (!(field = strsep(&tmp, ":"))) return -1; channel->service_id = strtoul(field, NULL, 0); - + + /* some channel.conf files are generated with the service ID 1 to the right + this needs investigation */ + if ((field = strsep(&tmp, ":"))) + if(strtoul(field,NULL,0)>0) + channel->service_id = strtoul(field, NULL, 0); return 0; } |