summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs')
-rw-r--r--win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs15
1 files changed, 2 insertions, 13 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs b/win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs
index 7ff81d407..25eb8caf2 100644
--- a/win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs
+++ b/win/CS/HandBrake.Interop/Interop/Helpers/InteropUtilities.cs
@@ -1,5 +1,5 @@
// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="InteropUtilities.cs" company="HandBrake Project (http://handbrake.fr)">
+// <copyright file="InteropUtilities.cs" company="HandBrake Project (https://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
@@ -16,23 +16,12 @@ namespace HandBrake.Interop.Interop.Helpers
using System.Text;
using HandBrake.Interop.Interop.HbLib;
- using HandBrake.Interop.Interop.HbLib.Wrappers.Interfaces;
- using HandBrake.Interop.Interop.Providers;
- using HandBrake.Interop.Interop.Providers.Interfaces;
/// <summary>
/// Helper utilities for native interop.
/// </summary>
internal static class InteropUtilities
{
- private static IHbFunctions hbFunctions;
-
- static InteropUtilities()
- {
- IHbFunctionsProvider hbFunctionsProvider = new HbFunctionsProvider();
- hbFunctions = hbFunctionsProvider.GetHbFunctionsWrapper();
- }
-
/// <summary>
/// Reads the given native structure pointer.
/// </summary>
@@ -273,7 +262,7 @@ namespace HandBrake.Interop.Interop.Helpers
// Assign the new pointer to the job pointer and tell HB to clean the job up.
Marshal.WriteIntPtr(nativeJobPtrPtr, nativeJobPtr);
- hbFunctions.hb_job_close(nativeJobPtrPtr);
+ HBFunctions.hb_job_close(nativeJobPtrPtr);
// Free the pointer we used.
Marshal.FreeHGlobal(nativeJobPtrPtr);