mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
Simplify and keep terminating end-of-line
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25807 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5efa59daeb
commit
e1c3f319f2
@ -442,13 +442,13 @@ cddb_read_parse(HTTP_header_t *http_hdr, cddb_data_t *cddb_data) {
|
||||
ptr = strdup(ptr);
|
||||
// Ok found the beginning of the file
|
||||
// look for the end
|
||||
ptr2 = strstr(ptr, "\r\n.\r\n");
|
||||
if( ptr2==NULL ) {
|
||||
ptr2 = strstr(ptr, "\n.\r\n");
|
||||
if (!ptr2)
|
||||
ptr2 = strstr(ptr, "\n.\n");
|
||||
if( ptr2==NULL ) {
|
||||
if (ptr2) ptr2++;
|
||||
else {
|
||||
mp_msg(MSGT_DEMUX, MSGL_FIXME, "Unable to find '.'\n");
|
||||
ptr2=ptr+strlen(ptr); //return -1;
|
||||
}
|
||||
}
|
||||
// Ok found the end
|
||||
// do a sanity check
|
||||
|
Loading…
Reference in New Issue
Block a user