]> granicus.if.org Git - handbrake/commitdiff
MacGui: do not try to create a NSURL if the path if empty. Encode the right type...
authorritsuka <damiog@gmail.com>
Mon, 1 Jun 2015 17:18:35 +0000 (17:18 +0000)
committerritsuka <damiog@gmail.com>
Mon, 1 Jun 2015 17:18:35 +0000 (17:18 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7255 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBFilters.m
macosx/HBJob+UIAdditions.m

index ebd38558c133995a81ef2acacc54d4881b01f6d0..33116a474292141d490dec62b2b98426a3980cec 100644 (file)
@@ -282,7 +282,7 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification";
     encodeObject(_denoiseTune);
     encodeObject(_denoiseCustomString);
 
-    encodeInteger(_deblock);
+    encodeInt(_deblock);
     encodeBool(_grayscale);
 
     encodeBool(_useDecomb);
index 2d126dd5bcf8dbeb5110d3af792043402fd30068..7eae8a773a1850bbce1753a324ef7ed29b0ae045 100644 (file)
@@ -556,7 +556,11 @@ static NSDictionary            *shortHeightAttr;
 
 - (id)reverseTransformedValue:(id)value
 {
-    return [NSURL fileURLWithPath:value];
+    if (value)
+    {
+        return [NSURL fileURLWithPath:value];
+    }
+    return nil;
 }
 
 @end