From: dynaflash Date: Tue, 13 Mar 2007 19:44:55 +0000 (+0000) Subject: MacGui: Thinine's custom file size and x264 fix. X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=fd25852f5bfb1351c4f52085f70fac26f65893fe;p=handbrake-jp%2Fhandbrake-jp-git.git MacGui: Thinine's custom file size and x264 fix. 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 --- diff --git a/libhb/common.h b/libhb/common.h index e63ecaf8..d43e5169 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -197,7 +197,7 @@ struct hb_job_s #define HB_MUX_IPOD 0x100000 int mux; - char * file; + const char * file; #ifdef __LIBHB__ /* Internal data */ diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 1bde5ded..499ae83e 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -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 ) {