diff options
author | sr55 <[email protected]> | 2020-10-04 15:41:07 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-10-04 15:41:15 +0100 |
commit | de8f3c5586121dcdf2b3b415464d686b9e58e3d2 (patch) | |
tree | 24d5ad72d02c602f43280295f6d5d5b0e2b56678 /win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs | |
parent | 561977956f39858d81e4786565466e63f8ddd430 (diff) |
HandBrake.Interop: Library cleanup.
- Remove HbFunctions provider class and interface. It's not needed. Interop library will direct call libhb though HBFunctions.cs
- Remove HbFunctionsDirect. Any consumer of the HandBrake API should be using managed calls rather than having to deal with pointers.
- Fix many stylecop warnings and update rulesets around this.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs b/win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs index 8daa6064d..d433e1625 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/ActiveJob.cs @@ -10,10 +10,7 @@ namespace HandBrakeWPF.Services.Queue { using System; - using System.Diagnostics; - - using HandBrake.Interop.Interop.Providers.Interfaces; - + using HandBrakeWPF.Services.Encode; using HandBrakeWPF.Services.Encode.EventArgs; using HandBrakeWPF.Services.Encode.Interfaces; @@ -27,10 +24,10 @@ namespace HandBrakeWPF.Services.Queue private readonly QueueTask job; private readonly IEncode encodeService; - public ActiveJob(QueueTask task, IHbFunctionsProvider hbFunctionsProvider, IUserSettingService userSettingService, ILogInstanceManager logInstanceManager, int jobId, IPortService portService) + public ActiveJob(QueueTask task, IUserSettingService userSettingService, ILogInstanceManager logInstanceManager, int jobId, IPortService portService) { this.job = task; - this.encodeService = new LibEncode(hbFunctionsProvider, userSettingService, logInstanceManager, jobId, portService); + this.encodeService = new LibEncode(userSettingService, logInstanceManager, jobId, portService); } public event EventHandler<ActiveJobCompletedEventArgs> JobFinished; |