mirror of https://github.com/mpv-player/mpv
- fixed uninitialized offsets[]
- tracklist may not be closed by '.' but EOF git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8558 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e26921ed54
commit
6b8a2624cc
|
@ -366,7 +366,7 @@ cddb_read_parse(HTTP_header_t *http_hdr, cddb_data_t *cddb_data) {
|
|||
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 @@ cddb_retrieve(cddb_data_t *cddb_data) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue