If pregap read returned error skip forward.

This commit is contained in:
2020-01-09 16:13:30 +00:00
parent 370d4f157b
commit 5bded4e37d

View File

@@ -126,7 +126,7 @@ namespace DiscImageChef.Core.Devices.Dumping
Track[] tracks, bool supportsPqSubchannel, bool supportsRwSubchannel,
Database.Models.Device dbDev, out bool inexactPositioning)
{
bool sense; // Sense indicator
bool sense = true; // Sense indicator
byte[] subBuf = null;
int posQ;
uint retries;
@@ -286,6 +286,14 @@ namespace DiscImageChef.Core.Devices.Dumping
{
dumpLog?.WriteLine($"Could not get correct subchannel for sector {lba}");
updateStatus?.Invoke($"Could not get correct subchannel for sector {lba}");
if(sense)
{
lba++;
forward = true;
continue;
}
}
if(subBuf.All(b => b == 0))