]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a potential crash in the plist importer
authorsr55 <sr55.hb@outlook.com>
Mon, 27 Feb 2012 19:48:11 +0000 (19:48 +0000)
committersr55 <sr55.hb@outlook.com>
Mon, 27 Feb 2012 19:48:11 +0000 (19:48 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4465 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs

index 622aad4f49dbf5c56bba7b9e34da47efe8697a02..91d4d5357c07af92437692037618da9970d59c8e 100644 (file)
@@ -277,7 +277,10 @@ namespace HandBrake.ApplicationServices.Utilities
                         parsed.Grayscale = value == "1";\r
                         break;\r
                     case "VideoQualitySlider":\r
-                        parsed.Quality = double.Parse(value);\r
+                        if (!string.IsNullOrEmpty(value))\r
+                        {\r
+                            parsed.Quality = double.Parse(value);\r
+                        }\r
                         break;\r
                     case "VideoQualityType": // The Type of Quality Mode used\r
                         qualityMode = value;\r