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

reimar subversion at mplayerhq.hu
Sat Jan 19 17:49:02 CET 2008


Author: reimar
Date: Sat Jan 19 17:49:01 2008
New Revision: 25806

Log:
Remove a broken and useless hack to avoid a memcpy


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:49:01 2008
@@ -439,6 +439,7 @@ cddb_read_parse(HTTP_header_t *http_hdr,
 				mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_MPDEMUX_CDDB_InvalidXMCDDatabaseReturned);
 				return -1;
 			}
+			ptr = strdup(ptr);
 			// Ok found the beginning of the file
 			// look for the end
 			ptr2 = strstr(ptr, "\r\n.\r\n");
@@ -458,9 +459,6 @@ cddb_read_parse(HTTP_header_t *http_hdr,
 			cddb_data->xmcd_file = ptr;
 			cddb_data->xmcd_file_size = ptr2-ptr;
 			cddb_data->xmcd_file[cddb_data->xmcd_file_size] = '\0';
-			// Avoid the http_free function to free the xmcd file...save a mempcy...
-			http_hdr->body = NULL;
-			http_hdr->body_size = 0;
 			return cddb_write_cache(cddb_data);
 		default:
 			mp_msg(MSGT_DEMUX, MSGL_FIXME, MSGTR_MPDEMUX_CDDB_UnhandledCode);



More information about the MPlayer-cvslog mailing list