diff options
author | sr55 <[email protected]> | 2011-02-27 16:33:55 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-02-27 16:33:55 +0000 |
commit | 9b4b5cfec74d9055e6e6ce82ed49b34f5e94618f (patch) | |
tree | 7a69c740163186eef28c3e0dfda0e6ce44820e6d /win/C#/HandBrake.ApplicationServices/Services | |
parent | 601dab390c4fa716e0e39a84cd94e01e70411aed (diff) |
WinGui:
- Fix an issue that was causing queue processing to crash out.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3817 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Services/Encode.cs | 1 | ||||
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Services/QueueProcessor.cs | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs index 0e9465d18..4a6333da7 100644 --- a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs +++ b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs @@ -376,7 +376,6 @@ namespace HandBrake.ApplicationServices.Services Thread.Sleep(2500);
this.HbProcess.CancelErrorRead();
- this.HbProcess.CancelOutputRead();
if (fileWriter != null)
{
diff --git a/win/C#/HandBrake.ApplicationServices/Services/QueueProcessor.cs b/win/C#/HandBrake.ApplicationServices/Services/QueueProcessor.cs index ff865e2ee..130e1fc46 100644 --- a/win/C#/HandBrake.ApplicationServices/Services/QueueProcessor.cs +++ b/win/C#/HandBrake.ApplicationServices/Services/QueueProcessor.cs @@ -197,6 +197,12 @@ namespace HandBrake.ApplicationServices.Services GrowlCommunicator.Notify("Encode Completed",
"Put down that cocktail...\nyour Handbrake encode is done.");
+ if (!e.Successful)
+ {
+ this.Pause();
+ MessageBox.Show(e.Exception + e.ErrorInformation);
+ }
+
// Handling Log Data
this.EncodeService.ProcessLogs(this.QueueManager.LastProcessedJob.Destination);
@@ -209,9 +215,10 @@ namespace HandBrake.ApplicationServices.Services /// </summary>
private void ProcessNextJob()
{
- if (this.EncodeService.IsEncoding)
+ if (this.EncodeService.IsEncoding || !this.IsProcessing)
{
// We don't want to try start a second encode, so just return out. The event will trigger the next encode automatically.
+ // Also, we don't want to start a new encode if we are paused.
return;
}
|