OSDN Git Service

MacGui: Thinine's custom file size and x264 fix.
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 13 Mar 2007 19:44:55 +0000 (19:44 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 13 Mar 2007 19:44:55 +0000 (19:44 +0000)
Thanks Thinine!

- Fix output file variable in controller.mm and common.h so that custom file sizes work properly with x264.

git-svn-id: svn://localhost/HandBrake/trunk@431 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/common.h
macosx/Controller.mm

index e63ecaf..d43e516 100644 (file)
@@ -197,7 +197,7 @@ struct hb_job_s
 #define HB_MUX_IPOD 0x100000
        
     int             mux;
-    char          * file;
+    const char          * file;
 
 #ifdef __LIBHB__
     /* Internal data */
index 1bde5de..499ae83 100644 (file)
@@ -864,7 +864,7 @@ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultPresetsDrawerShow
                [self PrepareJob];
                
                /* Destination file */
-               job->file = strdup( [[fDstFile2Field stringValue] UTF8String] );
+               job->file = [[fDstFile2Field stringValue] UTF8String];
                
                if( [fVidTwoPassCheck state] == NSOnState )
                {