Skip to content

Commit

Permalink
Check title keys resume for null when not a DVD Video (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
FakeShemp authored Dec 19, 2023
1 parent aa554f5 commit d081edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aaru.Core/Devices/Dumping/Sbc/Cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ void ReadCacheData(in ulong blocks, in uint maxBlocksToRead, in uint blockSi
0, 0, 0, 0, 0
}, i + j, SectorTagType.DvdTitleKeyDecrypted);

_resume.MissingTitleKeys.Remove(i + j);
_resume.MissingTitleKeys?.Remove(i + j);

continue;
}

CSS.DecryptTitleKey(discKey, key, out tmpBuf);
outputFormat.WriteSectorTag(tmpBuf, i + j, SectorTagType.DvdTitleKeyDecrypted);
_resume.MissingTitleKeys.Remove(i + j);
_resume.MissingTitleKeys?.Remove(i + j);

if(_storeEncrypted)
continue;
Expand Down

0 comments on commit d081edc

Please sign in to comment.