Commit 227c020c authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: CAS: private API optimization

parent 0ffa68f3
...@@ -245,7 +245,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil; ...@@ -245,7 +245,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
- (IBAction)customizeProfile:(id)sender - (IBAction)customizeProfile:(id)sender
{ {
[self resetCustomizationSheetBasedOnProfile:[_profile_pop indexOfSelectedItem]]; [self resetCustomizationSheetBasedOnProfile:[_profileValueList objectAtIndex:[_profile_pop indexOfSelectedItem]]];
[NSApp beginSheet:_customize_panel modalForWindow:_window modalDelegate:self didEndSelector:NULL contextInfo:nil]; [NSApp beginSheet:_customize_panel modalForWindow:_window modalDelegate:self didEndSelector:NULL contextInfo:nil];
} }
...@@ -325,7 +325,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil; ...@@ -325,7 +325,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
} }
} }
- (void)resetCustomizationSheetBasedOnProfile:(NSInteger)profileNumber - (void)resetCustomizationSheetBasedOnProfile:(NSString *)profileString
{ {
/* Container(string), transcode video(bool), transcode audio(bool), /* Container(string), transcode video(bool), transcode audio(bool),
* use subtitles(bool), video codec(string), video bitrate(integer), * use subtitles(bool), video codec(string), video bitrate(integer),
...@@ -333,9 +333,9 @@ static VLCConvertAndSave *_o_sharedInstance = nil; ...@@ -333,9 +333,9 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
* audio codec(string), audio bitrate(integer), channels(integer), * audio codec(string), audio bitrate(integer), channels(integer),
* samplerate(integer), subtitle codec(string), subtitle overlay(bool) */ * samplerate(integer), subtitle codec(string), subtitle overlay(bool) */
NSArray * components = [[_profileValueList objectAtIndex:profileNumber] componentsSeparatedByString:@";"]; NSArray * components = [profileString componentsSeparatedByString:@";"];
if ([components count] != 16) { if ([components count] != 16) {
msg_Err(VLCIntf, "CAS: the requested profile %li is invalid", profileNumber); msg_Err(VLCIntf, "CAS: the requested profile '%s' is invalid", [profileString UTF8String]);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment