diff options
author | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-11 21:30:24 +0200 |
---|---|---|
committer | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-11 21:30:24 +0200 |
commit | ee64be9f9bd9fd9a7ddbf9d75bb7642cd1b1ccca (patch) | |
tree | d0b757f572a0e5654030cbd4645c64826285ad30 /extra/mplayer/cddb_fix_20070605.diff | |
parent | a36d711d21e366e481d51e867a75b69b6820652a (diff) | |
download | nutyx-extra-ee64be9f9bd9fd9a7ddbf9d75bb7642cd1b1ccca.tar.gz nutyx-extra-ee64be9f9bd9fd9a7ddbf9d75bb7642cd1b1ccca.tar.bz2 nutyx-extra-ee64be9f9bd9fd9a7ddbf9d75bb7642cd1b1ccca.tar.xz nutyx-extra-ee64be9f9bd9fd9a7ddbf9d75bb7642cd1b1ccca.zip |
Ajout de mplayer#20090801-1
Diffstat (limited to 'extra/mplayer/cddb_fix_20070605.diff')
-rw-r--r-- | extra/mplayer/cddb_fix_20070605.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/mplayer/cddb_fix_20070605.diff b/extra/mplayer/cddb_fix_20070605.diff new file mode 100644 index 000000000..018e8b494 --- /dev/null +++ b/extra/mplayer/cddb_fix_20070605.diff @@ -0,0 +1,29 @@ +--- stream/stream_cddb.c (revision 20381) ++++ stream/stream_cddb.c (working copy) +@@ -435,7 +435,7 @@ + + switch(status) { + case 210: +- ret = sscanf( http_hdr->body, "%d %s %08lx", &status, category, &disc_id); ++ ret = sscanf( http_hdr->body, "%d %99s %08lx", &status, category, &disc_id); + if( ret!=3 ) { + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); + return -1; +@@ -496,7 +496,7 @@ + ptr++; + // We have a list of exact/inexact matches, so which one do we use? + // So let's take the first one. +- ret = sscanf(ptr, "%s %08lx %s", cddb_data->category, &(cddb_data->disc_id), album_title); ++ ret = sscanf(ptr, "%99s %08lx %99s", cddb_data->category, &(cddb_data->disc_id), album_title); + if( ret!=3 ) { + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); + return -1; +@@ -533,7 +533,7 @@ + switch(status) { + case 200: + // Found exact match +- ret = sscanf(http_hdr->body, "%d %s %08lx %s", &status, cddb_data->category, &(cddb_data->disc_id), album_title); ++ ret = sscanf(http_hdr->body, "%d %99s %08lx %99s", &status, cddb_data->category, &(cddb_data->disc_id), album_title); + if( ret!=4 ) { + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); + return -1; |