diff options
Diffstat (limited to 'win')
3 files changed, 8 insertions, 7 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs index ade0f5e29..cb920a862 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs @@ -174,9 +174,11 @@ namespace HandBrake.ApplicationServices.Services }
catch (Exception exc)
{
+ encodeQueueTask.Status = QueueItemStatus.Error;
this.Invoke_encodeCompleted(
new EncodeCompletedEventArgs(
- false, exc, "An Error occured when trying to encode this source. "));
+ false, null, "An Error occured when trying to encode this source. "));
+ throw;
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs index 1deeb0d44..7e67368e3 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs @@ -216,11 +216,6 @@ namespace HandBrake.ApplicationServices.Services {
this.QueueManager.LastProcessedJob.Status = QueueItemStatus.Error;
this.Pause();
- if (e.Exception.GetType() == typeof(GeneralApplicationException))
- {
- throw e.Exception;
- }
- throw new GeneralApplicationException(e.ErrorInformation, e.Exception.Message, e.Exception);
}
// Handling Log Data
diff --git a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs index fa8408649..7fe50cd04 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs @@ -136,6 +136,10 @@ namespace HandBrake.ApplicationServices.Services SerializableDictionary<string, object> data = (SerializableDictionary<string, object>)serializer.Deserialize(reader);
this.userSettings = data;
}
+ }
+ else
+ {
+ this.userSettings = new SerializableDictionary<string, object>();
}
// Add any missing / new settings
@@ -146,7 +150,7 @@ namespace HandBrake.ApplicationServices.Services this.Save();
}
}
- catch (Exception)
+ catch (Exception exc)
{
try
{
|