Fix passing by of media type by dumping methods.

This commit is contained in:
2020-01-30 23:04:37 +00:00
parent d4f5af281d
commit 96f5729cfc
5 changed files with 16 additions and 17 deletions

View File

@@ -45,8 +45,7 @@ namespace DiscImageChef.Core.Devices.Dumping
/// <summary>Dumps a SCSI Block Commands device or a Reduced Block Commands devices</summary>
public void Scsi()
{
MediaType dskType = MediaType.Unknown;
int resets = 0;
int resets = 0;
if(_dev.IsRemovable)
{
@@ -235,14 +234,14 @@ namespace DiscImageChef.Core.Devices.Dumping
return;
case PeripheralDeviceTypes.MultiMediaDevice:
if(_outputPlugin is IWritableOpticalImage)
Mmc(ref dskType);
Mmc();
else
StoppingErrorMessage?.
Invoke("The specified plugin does not support storing optical disc images.");
return;
default:
Sbc(null, ref dskType, false);
Sbc(null, MediaType.Unknown, false);
break;
}