Commit 2a1b91e4 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/open: minor code optimization

parent a5be2f81
...@@ -482,11 +482,10 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -482,11 +482,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_options addObject: [NSString stringWithFormat:@"stop-time=%li", tempValue]]; [o_options addObject: [NSString stringWithFormat:@"stop-time=%li", tempValue]];
if( [o_output_ckbox state] == NSOnState ) if( [o_output_ckbox state] == NSOnState )
{ {
NSUInteger count = [[o_sout_options soutMRL] count]; NSArray * soutMRL = [o_sout_options soutMRL];
NSUInteger count = [soutMRL count];
for (NSUInteger i = 0 ; i < count ; i++) for (NSUInteger i = 0 ; i < count ; i++)
{ [o_options addObject: [NSString stringWithString: [soutMRL objectAtIndex: i]]];
[o_options addObject: [NSString stringWithString: [[(VLCOutput *)o_sout_options soutMRL] objectAtIndex: i]]];
}
} }
if( [o_file_slave_ckbox state] && o_file_slave_path ) if( [o_file_slave_ckbox state] && o_file_slave_path )
[o_options addObject: [NSString stringWithFormat: @"input-slave=%@", o_file_slave_path]]; [o_options addObject: [NSString stringWithFormat: @"input-slave=%@", o_file_slave_path]];
......
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