Only force 2 second pregap for track 1

Fixes #579
This commit is contained in:
RibShark 2020-08-05 15:19:28 +01:00 committed by GitHub
parent b6d25c46e4
commit 1ebbb1e42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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