diff options
author | sr55 <[email protected]> | 2009-06-14 13:31:24 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-14 13:31:24 +0000 |
commit | b023bb532c17e1284230172b660baa32b5750318 (patch) | |
tree | 33a5bfe14b29a2ed932e782b94469956cea5874d /win/C#/EncodeQueue/Encode.cs | |
parent | 729ff4e83ad9c402fd322922e38c6b75f55508e0 (diff) |
WinGui:
- Small tweaks to Encode.cs
- write2disk queue recovery feature is now completely handled in QueueHandler
- Auto naming is on by default.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2533 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/EncodeQueue/Encode.cs')
-rw-r--r-- | win/C#/EncodeQueue/Encode.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/C#/EncodeQueue/Encode.cs b/win/C#/EncodeQueue/Encode.cs index c0e0b7c3e..80125fc30 100644 --- a/win/C#/EncodeQueue/Encode.cs +++ b/win/C#/EncodeQueue/Encode.cs @@ -33,7 +33,7 @@ namespace Handbrake.EncodeQueue {
cliStart.RedirectStandardOutput = true;
cliStart.UseShellExecute = false;
-
+
}
if (Properties.Settings.Default.cli_minimized == "Checked")
cliStart.WindowStyle = ProcessWindowStyle.Minimized;
@@ -43,7 +43,8 @@ namespace Handbrake.EncodeQueue currentEncode.processID = Main.getCliProcess(before);
currentEncode.isEncoding = true;
currentEncode.currentQuery = query;
- currentEncode.processHandle = (int)currentEncode.hbProcProcess.MainWindowHandle; // Set the process Handle
+ if (currentEncode.hbProcProcess != null)
+ currentEncode.processHandle = (int)currentEncode.hbProcProcess.MainWindowHandle; // Set the process Handle
// Set the process Priority
Process hbCliProcess = null;
@@ -75,7 +76,7 @@ namespace Handbrake.EncodeQueue }
catch (Exception exc)
{
- MessageBox.Show("An error occured in runCli()\n Error Information: \n\n" + exc);
+ MessageBox.Show("It would appear that HandBrakeCLI has not started correctly. You should take a look at the Activity log as it may indicate the reason why.\n\n Detailed Error Information: error occured in runCli()\n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
return currentEncode;
|