Return tracks as null in raw image when image is not from an optical disc.

This commit is contained in:
2019-04-16 01:12:24 +01:00
parent 3b2da26910
commit 45087d6b1a

View File

@@ -55,8 +55,7 @@ namespace DiscImageChef.DiscImages
{
get
{
if(imageInfo.XmlMediaType != XmlMediaType.OpticalDisc)
throw new FeatureUnsupportedImageException("Feature not supported by image format");
if(imageInfo.XmlMediaType != XmlMediaType.OpticalDisc) return null;
Track trk = new Track
{