diff options
Diffstat (limited to 'win/C#/Functions/Encode.cs')
-rw-r--r-- | win/C#/Functions/Encode.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win/C#/Functions/Encode.cs b/win/C#/Functions/Encode.cs index 7c3f436fa..99db0bc94 100644 --- a/win/C#/Functions/Encode.cs +++ b/win/C#/Functions/Encode.cs @@ -25,6 +25,7 @@ namespace Handbrake.Functions // Declarations
Process hbProc = new Process();
+ Boolean encoding = false;
// CLI output is based on en-US locale,
static readonly private CultureInfo Culture = new CultureInfo("en-US", false);
@@ -47,6 +48,7 @@ namespace Handbrake.Functions if (Properties.Settings.Default.cli_minimized == "Checked")
cliStart.WindowStyle = ProcessWindowStyle.Minimized;
hbProc = Process.Start(cliStart);
+ encoding = true;
// Set the process Priority
switch (Properties.Settings.Default.processPriority)
@@ -83,6 +85,7 @@ namespace Handbrake.Functions /// </summary>
public void afterEncodeAction()
{
+ encoding = false;
// Do something whent he encode ends.
switch (Properties.Settings.Default.CompletionOption)
{
@@ -168,5 +171,13 @@ namespace Handbrake.Functions }
}
+ /// <summary>
+ /// Returns whether HandBrake is currently encoding or not.
+ /// </summary>
+ public Boolean isEncoding
+ {
+ get { if (encoding == false) return false; else return true; }
+ }
+
}
}
|