Skip to content

Commit 851404f

Browse files
committed
Call EnsureGlobalInit on the worker process
1 parent 5cbaeb6 commit 851404f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

VidCoderWorker/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
using System;
1+
using HandBrake.Interop.Interop;
2+
using PipeMethodCalls;
3+
using PipeMethodCalls.NetJson;
4+
using System;
25
using System.Diagnostics;
36
using System.Linq;
47
using System.Net;
58
using System.Threading;
69
using System.Threading.Tasks;
7-
using PipeMethodCalls;
8-
using PipeMethodCalls.NetJson;
910
using VidCoderCommon;
1011
using VidCoderCommon.Model;
1112
using VidCoderCommon.Services;
@@ -75,6 +76,8 @@ static async Task Main(string[] args)
7576

7677
parentCheckTimer.Start();
7778

79+
HandBrakeUtils.EnsureGlobalInit(initNoHardwareMode: false);
80+
7881
StartService(action, debugLogging);
7982

8083
encodeComplete = new SemaphoreSlim(0, 1);

0 commit comments

Comments
 (0)