diff options
author | sr55 <[email protected]> | 2010-04-30 19:57:05 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-04-30 19:57:05 +0000 |
commit | c1d2b77d9e0c0bdb37da785be22059832fc507a5 (patch) | |
tree | 6af7a04ecd472e7fe781a4b7f108d69522e9889a /win/C#/Services/Scan.cs | |
parent | 5694491f9710ae41db4e24055c14f56ad6682589 (diff) |
WinGui:
- Kill the CLI on GUI close for Scanning and fixed for encoding.
- Fixed Autoname bug where it would strip all slashes out the path
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3279 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Services/Scan.cs')
-rw-r--r-- | win/C#/Services/Scan.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/win/C#/Services/Scan.cs b/win/C#/Services/Scan.cs index abecfec2b..6fd00a34f 100644 --- a/win/C#/Services/Scan.cs +++ b/win/C#/Services/Scan.cs @@ -128,6 +128,24 @@ namespace Handbrake.Services }
/// <summary>
+ /// Kill the scan
+ /// </summary>
+ public void KillScan()
+ {
+ try
+ {
+ if (hbProc != null)
+ hbProc.Kill();
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(
+ "Unable to kill HandBrakeCLI.exe \nYou may need to manually kill HandBrakeCLI.exe using the Windows Task Manager if it does not close automatically within the next few minutes. \n\nError Information: \n" +
+ ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ }
+
+ /// <summary>
/// Start a scan for a given source path and title
/// </summary>
/// <param name="sourcePath">Path to the source file</param>
@@ -193,7 +211,7 @@ namespace Handbrake.Services {
Console.WriteLine("frmMain.cs - scanProcess() " + exc);
}
- }
+ }
/// <summary>
/// Read the log file
|