diff --git a/Aaru.Core/Devices/Dumping/CompactDisc/Dump.cs b/Aaru.Core/Devices/Dumping/CompactDisc/Dump.cs index 642ebbc6c..a2bcce656 100644 --- a/Aaru.Core/Devices/Dumping/CompactDisc/Dump.cs +++ b/Aaru.Core/Devices/Dumping/CompactDisc/Dump.cs @@ -936,10 +936,6 @@ sealed partial class Dump dskType = MediaType.CDI; } - // Try to read the first track pregap - if(_dumpFirstTrackPregap && readcd) - ReadCdFirstTrackPregap(blockSize, ref currentSpeed, mediaTags, supportedSubchannel, ref totalDuration); - UpdateStatus?.Invoke(string.Format(Localization.Core.Reading_0_sectors_at_a_time, _maximumReadable)); UpdateStatus?.Invoke(string.Format(Localization.Core.Device_reports_0_blocks_1_bytes, @@ -1241,6 +1237,10 @@ sealed partial class Dump _mediaGraph?.PaintSectorsBad(_resume.BadBlocks); } + // Try to read the first track pregap + if(_dumpFirstTrackPregap && readcd) + ReadCdFirstTrackPregap(blockSize, ref currentSpeed, mediaTags, supportedSubchannel, ref totalDuration); + audioExtents = new ExtentsULong(); foreach(Track audioTrack in tracks.Where(t => t.Type == TrackType.Audio))