From f1c5cb5f2388aeebbe7ec9f105b406bebf2345e0 Mon Sep 17 00:00:00 2001
From: ritsuka <damiog@gmail.com>
Date: Mon, 29 Dec 2014 08:35:06 +0000
Subject: [PATCH] MacGui: pass the fast decode option to the hb_job.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6668 b64f7644-9d1e-0410-96f1-a4d463321fa5
---
 macosx/HBJob.m               | 2 +-
 macosx/HBVideo+UIAdditions.m | 2 +-
 macosx/HBVideo.h             | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index e72c06a81..23af79b7a 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -252,7 +252,7 @@ NSString *keyContainerTag                      = @"keyContainerTag";
         else
         {
             // we are using the x264 preset system
-            if ([(tmpString = self.video.tune) length])
+            if ([(tmpString = self.video.completeTune) length])
             {
                 encoder_tune = [tmpString UTF8String];
             }
diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m
index 7cf577a2d..7d56431aa 100644
--- a/macosx/HBVideo+UIAdditions.m
+++ b/macosx/HBVideo+UIAdditions.m
@@ -105,7 +105,7 @@
     const char *h264_level    = NULL;
 
     // prepare the tune, advanced options, profile and level
-    if ([tmpString  = [self completeTune] length])
+    if ([tmpString  = self.completeTune length])
     {
         x264_tune = [tmpString UTF8String];
     }
diff --git a/macosx/HBVideo.h b/macosx/HBVideo.h
index 9e7b2631e..22424061a 100644
--- a/macosx/HBVideo.h
+++ b/macosx/HBVideo.h
@@ -45,5 +45,6 @@
 @property (nonatomic, readwrite) BOOL fastDecode;
 
 @property (nonatomic, readwrite, assign) HBJob *job;
+@property (nonatomic, readonly) NSString *completeTune;
 
 @end
-- 
2.40.0