Fix infinite loop in pregap calculation when subchannel comes empty.

This commit is contained in:
2020-01-08 01:52:16 +00:00
parent a17bc7f822
commit 9148b8f19e

View File

@@ -250,6 +250,13 @@ namespace DiscImageChef.Core.Devices.Dumping
updateStatus?.Invoke($"Could not get correct subchannel for sector {lba}");
}
if(subBuf.All(b => b == 0))
{
inexactPositioning = true;
break;
}
BcdToBinaryQ(subBuf);
// If it's not Q position