summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-04-09 21:07:12 +0100
committersr55 <[email protected]>2020-04-09 21:07:12 +0100
commit0abc8cb07a4d6ca27d0a0c300a78957b610b773e (patch)
treee2a93933a6e65357a39a59d951cee44a87d8c142 /win/CS/HandBrake.Interop
parent0dcc7cf1a5c986b17bc36c7309bfad46658d05de (diff)
WinGui: Allow the *experimental* process worker feature to be enabled though advanced preferences. When enabled, all encodes will run in a seperate worker process protecting the UI and queue from any serious crashes.
Diffstat (limited to 'win/CS/HandBrake.Interop')
-rw-r--r--win/CS/HandBrake.Interop/Interop/EventArgs/EncodeCompletedEventArgs.cs6
-rw-r--r--win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/EventArgs/EncodeCompletedEventArgs.cs b/win/CS/HandBrake.Interop/Interop/EventArgs/EncodeCompletedEventArgs.cs
index ea54e1d1c..98368cd93 100644
--- a/win/CS/HandBrake.Interop/Interop/EventArgs/EncodeCompletedEventArgs.cs
+++ b/win/CS/HandBrake.Interop/Interop/EventArgs/EncodeCompletedEventArgs.cs
@@ -1,5 +1,5 @@
// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="EncodeCompletedEventArgs.cs" company="HandBrake Project (http://handbrake.fr)">
+// <copyright file="EncodeCompletedEventArgs.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>
@@ -22,7 +22,7 @@ namespace HandBrake.Interop.Interop.EventArgs
/// <param name="error">
/// The error.
/// </param>
- public EncodeCompletedEventArgs(bool error)
+ public EncodeCompletedEventArgs(int error)
{
this.Error = error;
}
@@ -30,6 +30,6 @@ namespace HandBrake.Interop.Interop.EventArgs
/// <summary>
/// Gets a value indicating whether an error occurred during the encode.
/// </summary>
- public bool Error { get; private set; }
+ public int Error { get; private set; }
}
}
diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
index 3b1295c89..a5027f72f 100644
--- a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
+++ b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs
@@ -490,7 +490,7 @@ namespace HandBrake.Interop.Interop
{
this.EncodeCompleted(
this,
- new EncodeCompletedEventArgs(state.WorkDone.Error != (int)hb_error_code.HB_ERROR_NONE));
+ new EncodeCompletedEventArgs(state.WorkDone.Error));
}
}
}