summaryrefslogtreecommitdiff
path: root/audio/libmp3splt/files
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2009-03-31 09:46:33 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2009-03-31 09:46:33 +0000
commit6b5d678bf396b0a6ad5d177dde1de44f5e6ba76c (patch)
tree4a2646e1926ad56b91082fb0e43865e9a7f16b8a /audio/libmp3splt/files
parentScraping NICONICO DOUGA utility for Ruby. (diff)
Fix parsing of CUE files.
Bump portrevision. Submitted by: maintainer via email
Notes
Notes: svn path=/head/; revision=231371
Diffstat (limited to 'audio/libmp3splt/files')
-rw-r--r--audio/libmp3splt/files/patch-cddb.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/libmp3splt/files/patch-cddb.c b/audio/libmp3splt/files/patch-cddb.c
new file mode 100644
index 000000000000..a479194792ed
--- /dev/null
+++ b/audio/libmp3splt/files/patch-cddb.c
@@ -0,0 +1,19 @@
+--- src/cddb.c.orig
++++ src/cddb.c
+@@ -393,6 +393,16 @@
+ //we read the file line by line
+ while (fgets(line, 2048, file_input)!=NULL)
+ {
++ //if windows file with '\r', then pretend is a unix file
++ if (strlen(line) > 1)
++ {
++ if (line[strlen(line)-2] == '\r')
++ {
++ line[strlen(line)-2] = '\n';
++ line[strlen(line)-1] = '\0';
++ }
++ }
++
+ type = SPLT_CUE_NOTHING;
+
+ //we read strings from file TRACK,TITLE,AUDIO,PERFORMER,INDEX