Skip to content

Commit

Permalink
WinGui: Fix a threading issue that could cause an error to not appear…
Browse files Browse the repository at this point in the history
… correctly. HandBrake#5631
  • Loading branch information
sr55 committed Dec 29, 2023
1 parent 2fe6e1c commit fa67cbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace HandBrakeWPF.ViewModels

using HandBrake.Interop.Interop.Interfaces;

using HandBrakeWPF.Helpers;
using HandBrakeWPF.Properties;
using HandBrakeWPF.Services.Encode.Model.Models;
using HandBrakeWPF.Services.Interfaces;
Expand Down Expand Up @@ -660,7 +661,7 @@ private void encodeService_EncodeCompleted(object sender, EncodeCompletedEventAr

if (e.ErrorInformation != "1")
{
this.PlayFile();
ThreadHelper.OnUIThread(() => this.PlayFile());
}
}
}
Expand Down

0 comments on commit fa67cbe

Please sign in to comment.