[vlc-devel] commit: macosx/framework: Factorization. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Dec 24 18:25:47 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Dec 24 18:05:04 2009 +0100| [df328ccffbe77f366a318169cfe6ce5f4939ef19] | committer: Pierre d'Herbemont
macosx/framework: Factorization.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df328ccffbe77f366a318169cfe6ce5f4939ef19
---
projects/macosx/framework/Sources/VLCLibrary.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCLibrary.m b/projects/macosx/framework/Sources/VLCLibrary.m
index d3f1180..87d8f0b 100644
--- a/projects/macosx/framework/Sources/VLCLibrary.m
+++ b/projects/macosx/framework/Sources/VLCLibrary.m
@@ -83,8 +83,9 @@ void __catch_exception( void * e, const char * function, const char * file, int
}
int paramNum = 0;
- const char *lib_vlc_params[[vlcParams count]];
- while (paramNum < [vlcParams count]) {
+ NSUInteger count = [vlcParams count];
+ const char *lib_vlc_params[count];
+ while (paramNum < count) {
NSString *vlcParam = [vlcParams objectAtIndex:paramNum];
lib_vlc_params[paramNum] = [vlcParam cStringUsingEncoding:NSASCIIStringEncoding];
paramNum++;
More information about the vlc-devel
mailing list