diff options
author | sr55 <[email protected]> | 2012-02-27 19:48:11 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-02-27 19:48:11 +0000 |
commit | c3f957985346930ea067b70155b9c353e961cc2a (patch) | |
tree | f378c0348879a8c19610f32e7e9159efbbc19458 /win/CS/HandBrake.ApplicationServices | |
parent | fa5ab86ec56830fd97d640ff22b0810e7ee9d93d (diff) |
WinGui: Fix a potential crash in the plist importer
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4465 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs index 622aad4f4..91d4d5357 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs @@ -277,7 +277,10 @@ namespace HandBrake.ApplicationServices.Utilities parsed.Grayscale = value == "1";
break;
case "VideoQualitySlider":
- parsed.Quality = double.Parse(value);
+ if (!string.IsNullOrEmpty(value))
+ {
+ parsed.Quality = double.Parse(value);
+ }
break;
case "VideoQualityType": // The Type of Quality Mode used
qualityMode = value;
|