[Mplayer-cvslog] CVS: main/libmpdemux cddb.c,1.8,1.9

Arpi of Ize arpi at mplayerhq.hu
Tue Dec 24 22:59:58 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv9627

Modified Files:
	cddb.c 
Log Message:
- fixed uninitialized offsets[]
- tracklist may not be closed by '.' but EOF


Index: cddb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cddb.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- cddb.c	29 Oct 2002 09:18:53 -0000	1.8
+++ cddb.c	24 Dec 2002 21:59:38 -0000	1.9
@@ -366,7 +366,7 @@
 				ptr2 = strstr(ptr, "\n.\n");
 				if( ptr2==NULL ) {
 					printf("Unable to find '.'\n");
-					return -1;
+					ptr2=ptr+strlen(ptr); //return -1;
 				}
 			}
 			// Ok found the end
@@ -580,8 +580,9 @@
 	for( i=0; i<cddb_data->tracks ; i++ ) {
 		ptr += sprintf(ptr, "%d+", cdtoc[i].frame );
 	}
+	ptr[0]=0;
 	time_len = (cdtoc[cddb_data->tracks].frame)/75;
-
+	
 	cddb_data->freedb_server = DEFAULT_FREEDB_SERVER;
 	cddb_data->freedb_proto_level = 1;
 	cddb_data->xmcd_file = NULL;




More information about the MPlayer-cvslog mailing list