[vlc-commits] macosx/open: minor code optimization
Felix Paul Kühne
git at videolan.org
Fri Aug 24 18:34:26 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Aug 24 17:59:40 2012 +0200| [2a1b91e48ef23672872ce76eec5aec58b6e1bcc5] | committer: Felix Paul Kühne
macosx/open: minor code optimization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a1b91e48ef23672872ce76eec5aec58b6e1bcc5
---
modules/gui/macosx/open.m | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 385bde5..b9ad62c 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -482,11 +482,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_options addObject: [NSString stringWithFormat:@"stop-time=%li", tempValue]];
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++)
- {
- [o_options addObject: [NSString stringWithString: [[(VLCOutput *)o_sout_options soutMRL] objectAtIndex: i]]];
- }
+ [o_options addObject: [NSString stringWithString: [soutMRL objectAtIndex: i]]];
}
if( [o_file_slave_ckbox state] && o_file_slave_path )
[o_options addObject: [NSString stringWithFormat: @"input-slave=%@", o_file_slave_path]];
More information about the vlc-commits
mailing list