Fix crash when resuming and disc key is not present

This commit is contained in:
Rebecca Wallander
2021-01-31 12:02:18 +01:00
parent 539037d5c7
commit 71ae4b5df7

View File

@@ -740,7 +740,8 @@ namespace Aaru.Core.Devices.Dumping
!_aborted &&
_retryPasses > 0 &&
Settings.Settings.Current.EnableDecryption &&
_titleKeys)
_titleKeys &&
mediaTags.ContainsKey(MediaTagType.DVD_DiscKey_Decrypted))
RetryTitleKeys(dvdDecrypt, mediaTags[MediaTagType.DVD_DiscKey_Decrypted], ref totalDuration);
#endregion Error handling