- Fix an issue that was causing queue processing to crash out.
git-svn-id: svn://localhost/HandBrake/trunk@3817
b64f7644-9d1e-0410-96f1-
a4d463321fa5
Thread.Sleep(2500);\r
\r
this.HbProcess.CancelErrorRead();\r
Thread.Sleep(2500);\r
\r
this.HbProcess.CancelErrorRead();\r
- this.HbProcess.CancelOutputRead();\r
\r
if (fileWriter != null)\r
{\r
\r
if (fileWriter != null)\r
{\r
GrowlCommunicator.Notify("Encode Completed",\r
"Put down that cocktail...\nyour Handbrake encode is done.");\r
\r
GrowlCommunicator.Notify("Encode Completed",\r
"Put down that cocktail...\nyour Handbrake encode is done.");\r
\r
+ if (!e.Successful)\r
+ {\r
+ this.Pause();\r
+ MessageBox.Show(e.Exception + e.ErrorInformation);\r
+ }\r
+\r
// Handling Log Data \r
this.EncodeService.ProcessLogs(this.QueueManager.LastProcessedJob.Destination);\r
\r
// Handling Log Data \r
this.EncodeService.ProcessLogs(this.QueueManager.LastProcessedJob.Destination);\r
\r
/// </summary>\r
private void ProcessNextJob()\r
{\r
/// </summary>\r
private void ProcessNextJob()\r
{\r
- if (this.EncodeService.IsEncoding)\r
+ if (this.EncodeService.IsEncoding || !this.IsProcessing)\r
{\r
// We don't want to try start a second encode, so just return out. The event will trigger the next encode automatically.\r
{\r
// We don't want to try start a second encode, so just return out. The event will trigger the next encode automatically.\r
+ // Also, we don't want to start a new encode if we are paused.\r