[MPlayer-cvslog] r25807 - trunk/stream/stream_cddb.c

reimar subversion at mplayerhq.hu
Sat Jan 19 17:57:54 CET 2008


Author: reimar
Date: Sat Jan 19 17:57:53 2008
New Revision: 25807

Log:
Simplify and keep terminating end-of-line


Modified:
   trunk/stream/stream_cddb.c

Modified: trunk/stream/stream_cddb.c
==============================================================================
--- trunk/stream/stream_cddb.c	(original)
+++ trunk/stream/stream_cddb.c	Sat Jan 19 17:57:53 2008
@@ -442,13 +442,13 @@ cddb_read_parse(HTTP_header_t *http_hdr,
 			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



More information about the MPlayer-cvslog mailing list