summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-14 00:13:56 +0000
committersr55 <[email protected]>2012-05-14 00:13:56 +0000
commitb2176395d7ff74edf112126893ece8c9e4681ac4 (patch)
treee2f24e22953f71944b64ffc954e343a631d3a9cd /win/CS/HandBrake.ApplicationServices
parent6a7aa982252348fe7b3cdf981f37bd6677d80006 (diff)
WinGui: Fix a crash in the user settings service on a clean install. Also handle exception throwing a bit better in the encode service.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4673 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Encode.cs4
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs5
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs6
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
{