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
This commit is contained in:
Will Tiffany 2015-08-22 22:19:55 -04:00 committed by Max Kellermann
parent 9bcb01a75e
commit 0f75c79665
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@ -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

View File

@ -273,6 +273,7 @@ CueParser::Feed2(char *p)
}
current->SetStartTime(SongTime::FromMS(position_ms));
state = IGNORE_TRACK;
}
}