🐛Fix track type when dumping DVD, HD DVD, BD or XGD.

This commit is contained in:
2018-02-05 18:23:53 +00:00
parent 96779b1261
commit 4912e3f73b
2 changed files with 18 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ using DiscImageChef.Metadata;
using Extents;
using Schemas;
using MediaType = DiscImageChef.CommonTypes.MediaType;
using TrackType = DiscImageChef.DiscImages.TrackType;
namespace DiscImageChef.Core.Devices.Dumping
{
@@ -300,7 +301,8 @@ namespace DiscImageChef.Core.Devices.Dumping
TrackSequence = 1,
TrackRawBytesPerSector = (int)blockSize,
TrackSubchannelType = TrackSubchannelType.None,
TrackSession = 1
TrackSession = 1,
TrackType = TrackType.Data
}
});
else if(decMode.HasValue)

View File

@@ -48,6 +48,7 @@ using DiscImageChef.Metadata;
using Extents;
using Schemas;
using MediaType = DiscImageChef.CommonTypes.MediaType;
using TrackType = DiscImageChef.DiscImages.TrackType;
namespace DiscImageChef.Core.Devices.Dumping
{
@@ -359,6 +360,20 @@ namespace DiscImageChef.Core.Devices.Dumping
if(currentTry == null || extents == null)
throw new NotImplementedException("Could not process resume file, not continuing...");
outputPlugin.SetTracks(new List<Track>
{
new Track
{
TrackBytesPerSector = (int)BLOCK_SIZE,
TrackEndSector = blocks - 1,
TrackSequence = 1,
TrackRawBytesPerSector = (int)BLOCK_SIZE,
TrackSubchannelType = TrackSubchannelType.None,
TrackSession = 1,
TrackType = TrackType.Data
}
});
ulong currentSector = resume.NextBlock;
if(resume.NextBlock > 0) dumpLog.WriteLine("Resuming from block {0}.", resume.NextBlock);