summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs')
-rw-r--r--win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
index 6e7103bd6..bf7e3ce30 100644
--- a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
+++ b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
@@ -110,9 +110,12 @@ namespace HandBrake.Interop.Interop
/// <param name="verbosity">
/// The code for the logging verbosity to use.
/// </param>
- public void Initialize(int verbosity)
+ /// <param name="noHardware">
+ /// True disables hardware init.
+ /// </param>
+ public void Initialize(int verbosity, bool noHardware)
{
- HandBrakeUtils.EnsureGlobalInit();
+ HandBrakeUtils.EnsureGlobalInit(noHardware);
HandBrakeUtils.RegisterLogger();
this.Handle = HBFunctions.hb_init(verbosity, update_check: 0);