From fd25852f5bfb1351c4f52085f70fac26f65893fe Mon Sep 17 00:00:00 2001 From: dynaflash Date: Tue, 13 Mar 2007 19:44:55 +0000 Subject: [PATCH] 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 --- libhb/common.h | 2 +- macosx/Controller.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.11.0