summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-11 17:16:50 +0200
committerMax Kellermann <max@musicpd.org>2018-08-13 08:18:18 +0200
commitfcf487f4e088bb93c5ca841d02e42e6671dbdb3c (patch)
treea6b6332dfea789c38d91fae25714688e5756bdda
parent906972973e5ff849cfea2e786b6d304057dfc529 (diff)
playlist/cue: support file type declaration "FLAC" (non-standard)
According to http://wiki.hydrogenaud.io/index.php?title=Cue_sheet FLAC files should use the "WAVE" file type, but I recently encountered CUE files declared as "FLAC" which could not be read by MPD.
-rw-r--r--NEWS2
-rw-r--r--src/playlist/cue/CueParser.cxx1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 4f1acfbc4..6e62fe1e8 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ ver 0.20.21 (not yet released)
- simple: allow .mpdignore comments only at start of line
* output
- httpd: remove broken DLNA support code
+* playlist
+ - cue: support file type declaration "FLAC" (non-standard)
* URI schemes are case insensitive
ver 0.20.20 (2018/05/22)
diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx
index c61fb09d0..f08078002 100644
--- a/src/playlist/cue/CueParser.cxx
+++ b/src/playlist/cue/CueParser.cxx
@@ -202,6 +202,7 @@ CueParser::Feed2(char *p) noexcept
return;
if (strcmp(type, "WAVE") != 0 &&
+ strcmp(type, "FLAC") != 0 && /* non-standard */
strcmp(type, "MP3") != 0 &&
strcmp(type, "AIFF") != 0) {
state = IGNORE_FILE;