]> granicus.if.org Git - handbrake/commitdiff
Fixes 2-pass encoding in the Mac GUI when extra x264 options are specified.
authorjbrjake <jb.rubin@gmail.com>
Tue, 20 Feb 2007 19:29:06 +0000 (19:29 +0000)
committerjbrjake <jb.rubin@gmail.com>
Tue, 20 Feb 2007 19:29:06 +0000 (19:29 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.8.0_beta2_5.1@381 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 50ccdedb7bb4b082cfbf876bc533bd31e392747d..c848eac6f9608745da8af8c24075ca60388bb0ee 100644 (file)
@@ -708,7 +708,7 @@ static int FormatSettings[3][4] =
                }
                
                /* Sends x264 options to the core library*/
-               job->x264opts = [[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] cString];
+               job->x264opts = strdup([[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] cString]);
                
                
         job->h264_13 = [fVidEncoderPopUp indexOfSelectedItem];
@@ -794,6 +794,7 @@ static int FormatSettings[3][4] =
         job->pass = 1;
         hb_add( fHandle, job );
         job->pass = 2;
+               job->x264opts = strdup([[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] cString]);
         hb_add( fHandle, job );
     }
     else