]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix queue reading on 10.7.
authorritsuka <damiog@gmail.com>
Sat, 23 May 2015 09:07:53 +0000 (09:07 +0000)
committerritsuka <damiog@gmail.com>
Sat, 23 May 2015 09:07:53 +0000 (09:07 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7218 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBCodingUtilities.m

index b6b97dce65a25ced6e8ab9205ca7a962e3a1a971..a87ad3f7abedbd4f55721436034eb92178487d64 100644 (file)
@@ -18,7 +18,7 @@ static BOOL useSecureCoding;
 
     if (!initialized && self == [HBCodingUtilities class])
     {
-        useSecureCoding = NSProtocolFromString(@"NSSecureCoding") ? YES : NO;
+        useSecureCoding = [NSCoder instancesRespondToSelector:@selector(decodeObjectOfClass:forKey:)] ? YES : NO;
     }
 }