Mercurial > mplayer.hg
changeset 25778:15c5da485a77
Remove a broken and useless hack to avoid a memcpy
author | reimar |
---|---|
date | Sat, 19 Jan 2008 16:49:01 +0000 |
parents | 1d16b891d440 |
children | ad419ff363d7 |
files | stream/stream_cddb.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_cddb.c Sat Jan 19 16:41:35 2008 +0000 +++ b/stream/stream_cddb.c Sat Jan 19 16:49:01 2008 +0000 @@ -439,6 +439,7 @@ 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_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);