CDImage: Assume 2 second pregap between tracks if none specified

This commit is contained in:
Connor McLaughlin 2020-03-09 00:01:23 +10:00
parent 631865469d
commit b81071a65c
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,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 && mode != TrackMode::Audio)
if (pregap_frames < 0)
pregap_frames = 2 * FRAMES_PER_SECOND;
// create the index for the pregap