Skip to content

Commit 1cf96a0

Browse files
committed
Fixed reported crash on handling encode failure.
1 parent 40a3572 commit 1cf96a0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎VidCoder/Services/HandBrakeProxy/RemoteScanProxy.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class RemoteScanProxy : RemoteProxyBase<IHandBrakeScanWorker, IHandBrakeS
1818
public async void StartScan(string path, IAppLogger logger)
1919
{
2020
this.Logger = logger;
21+
this.result = null;
2122

2223
await this.RunOperationAsync(worker => worker.StartScan(path));
2324
}

‎VidCoder/Services/QueueAdderService.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private void EnsureScanProxyCreated()
178178

179179
if (!scanFoundTitle)
180180
{
181-
this.ScanFailed.Invoke(this, new EventArgs<string>(this.currentScan.SourcePath.Path));
181+
this.ScanFailed?.Invoke(this, new EventArgs<string>(this.currentScan.SourcePath.Path));
182182
}
183183

184184
this.scansCompletedThisSession++;

0 commit comments

Comments
 (0)