From ea45ef8fa52c7880216d3a34e04c242ef4ce1852 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 4 Mar 2020 00:17:16 +0000 Subject: [PATCH] Adjust pregap calculation. --- Aaru.Core/Devices/Dumping/CompactDisc/Pregap.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Aaru.Core/Devices/Dumping/CompactDisc/Pregap.cs b/Aaru.Core/Devices/Dumping/CompactDisc/Pregap.cs index 12322841a..190677477 100644 --- a/Aaru.Core/Devices/Dumping/CompactDisc/Pregap.cs +++ b/Aaru.Core/Devices/Dumping/CompactDisc/Pregap.cs @@ -493,11 +493,7 @@ namespace Aaru.Core.Devices.Dumping // Pregap according to Q position posQ = ((subBuf[7] * 60 * 75) + (subBuf[8] * 75) + subBuf[9]) - 150; int diff = posQ - lba; - int pregapQ = (subBuf[3] * 60 * 75) + (subBuf[4] * 75) + subBuf[5] + 1; - - // If we obtained a Q from a previous sector, or we just came back from the previous track Q, sum the difference - if(diff < 0 || forward) - pregapQ += diff; + int pregapQ = (int)track.TrackStartSector - lba; if(diff != 0) {