aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Tiffany <will.tiffany@gmail.com>2015-08-22 22:19:55 -0400
committerMax Kellermann <max@duempel.org>2015-08-23 15:49:50 +0200
commit0f75c79665b6481fb833b85d24f319f893745030 (patch)
treee7afb87b51f8a34c85f9178aa25e0e3429ef8365
parent9bcb01a75e6023505b56b5496aaeb6f114b52cd0 (diff)
downloadmpd-0f75c79665b6481fb833b85d24f319f893745030.tar.gz
mpd-0f75c79665b6481fb833b85d24f319f893745030.tar.xz
mpd-0f75c79665b6481fb833b85d24f319f893745030.zip
CueParser.cxx: ignore INDEX after first per track
Use the first INDEX in each TRACK section, instead of the last, for the start time. This preserves the original CD layout (including gaps between tracks), and avoids skipping sections of songs in more exotic cuesheets (eg musical suite tracks). Fixes 0004355 and 0003359
Diffstat (limited to '')
-rw-r--r--NEWS1
-rw-r--r--src/playlist/cue/CueParser.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index acff1a48f..b6a64d4c3 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ ver 0.20 (not yet released)
- ffmpeg: support stream tags
- mpcdec: read the bit rate
* playlist
+ - cue: don't skip pregap
- embcue: fix last track
* output
- jack: reduce CPU usage
diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx
index 80bf79bf6..e0c84a01e 100644
--- a/src/playlist/cue/CueParser.cxx
+++ b/src/playlist/cue/CueParser.cxx
@@ -273,6 +273,7 @@ CueParser::Feed2(char *p)
}
current->SetStartTime(SongTime::FromMS(position_ms));
+ state = IGNORE_TRACK;
}
}