aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-07-26 23:01:40 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 10:52:50 +0100
commit86bfb3ef132a0cda2f2450187304d859e3027cef (patch)
tree7d9feffe3e265dd3b97b4b81c93b00df372df107
parent797733138a57059d38c6c495545439ea065467e7 (diff)
cue_parser: support file types "MP3", "AIFF"
These two strings are common "FILE" types.
-rw-r--r--NEWS2
-rw-r--r--src/cue/cue_parser.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 60dabb30..85bee6bd 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ ver 0.17.1 (2012/??/??)
- require appropriate permissions for searchadd{,pl}
* tags:
- aiff: support the AIFC format
+* playlist:
+ - cue: support file types "MP3", "AIFF"
* output:
- fix noisy playback with conversion and software volume
diff --git a/src/cue/cue_parser.c b/src/cue/cue_parser.c
index 034d4a1f..868aed09 100644
--- a/src/cue/cue_parser.c
+++ b/src/cue/cue_parser.c
@@ -235,7 +235,9 @@ cue_parser_feed2(struct cue_parser *parser, char *p)
if (type == NULL)
return;
- if (strcmp(type, "WAVE") != 0) {
+ if (strcmp(type, "WAVE") != 0 &&
+ strcmp(type, "MP3") != 0 &&
+ strcmp(type, "AIFF") != 0) {
parser->state = IGNORE_FILE;
return;
}