Merge pull request #712 from RibShark/master

Only force 2 second pregap for track 1
This commit is contained in:
Connor McLaughlin 2020-08-06 01:13:53 +10:00 committed by GitHub
commit d73692caf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ bool CDImageCueSheet::OpenAndParse(const char* filename)
// two seconds pregap for track 1 is assumed if not specified
long pregap_frames = track_get_zero_pre(track);
bool pregap_in_file = pregap_frames > 0 && track_start >= pregap_frames;
if (pregap_frames < 0)
if (track_num == 1 && pregap_frames < 0)
pregap_frames = 2 * FRAMES_PER_SECOND;
// create the index for the pregap