diff options
author | jbrjake <[email protected]> | 2007-03-11 01:51:51 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-03-11 01:51:51 +0000 |
commit | 1e048f273b1e7a4e187f587a71cf4de45d84a596 (patch) | |
tree | c735b2a4456a3068fd9ad90c127a744e96b57ea2 /macosx | |
parent | 73848bc472d2fcf08b29c5cf3b9972239e50ae42 (diff) |
MacGui: Patch from Thinine: For x264 options, use UTF8String instead of CString, and avoid a string duplication. (Thanks for cleaning up my mess, Thinine!)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@427 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 52431ce57..7672530fa 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -775,7 +775,7 @@ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultPresetsDrawerShow } /* Sends x264 options to the core library*/ - job->x264opts = strdup([[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] cString]); + job->x264opts = [[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] UTF8String]; job->h264_13 = [fVidEncoderPopUp indexOfSelectedItem]; @@ -871,7 +871,7 @@ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultPresetsDrawerShow job->pass = 1; hb_add( fHandle, job ); job->pass = 2; - job->x264opts = strdup([[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] cString]); + job->x264opts = [[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] UTF8String]; hb_add( fHandle, job ); } else |