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.
This commit is contained in:
parent
906972973e
commit
fcf487f4e0
2
NEWS
2
NEWS
|
@ -5,6 +5,8 @@ ver 0.20.21 (not yet released)
|
||||||
- simple: allow .mpdignore comments only at start of line
|
- simple: allow .mpdignore comments only at start of line
|
||||||
* output
|
* output
|
||||||
- httpd: remove broken DLNA support code
|
- httpd: remove broken DLNA support code
|
||||||
|
* playlist
|
||||||
|
- cue: support file type declaration "FLAC" (non-standard)
|
||||||
* URI schemes are case insensitive
|
* URI schemes are case insensitive
|
||||||
|
|
||||||
ver 0.20.20 (2018/05/22)
|
ver 0.20.20 (2018/05/22)
|
||||||
|
|
|
@ -202,6 +202,7 @@ CueParser::Feed2(char *p) noexcept
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (strcmp(type, "WAVE") != 0 &&
|
if (strcmp(type, "WAVE") != 0 &&
|
||||||
|
strcmp(type, "FLAC") != 0 && /* non-standard */
|
||||||
strcmp(type, "MP3") != 0 &&
|
strcmp(type, "MP3") != 0 &&
|
||||||
strcmp(type, "AIFF") != 0) {
|
strcmp(type, "AIFF") != 0) {
|
||||||
state = IGNORE_FILE;
|
state = IGNORE_FILE;
|
||||||
|
|
Loading…
Reference in New Issue