[vlc-devel] [PATCH 05/12] fixed array access in modules/gui/macosx/CoreInteraction.m

Benedikt Bergenthal benedikt at kdrennert.de
Fri May 10 18:47:54 CEST 2013


diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index 705e165..047c2fa 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -566,7 +566,7 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
             BOOL b_returned = NO;
 
             if (count == 1 && p_input) {
-                b_returned = input_AddSubtitle(p_input, [o_values[0] UTF8String], true);
+                b_returned = input_AddSubtitle(p_input, [[o_values objectAtIndex:0] UTF8String], true);
                 vlc_object_release(p_input);
                 if (!b_returned)
                     return YES;
@@ -576,7 +576,7 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
 
             for (NSUInteger i = 0; i < count; i++) {
                 NSDictionary *o_dic;
-                char *psz_uri = vlc_path2uri([o_values[i] UTF8String], NULL);
+                char *psz_uri = vlc_path2uri([[o_values objectAtIndex:i] UTF8String], NULL);
                 if (!psz_uri)
                     continue;
 
-- 
1.8.2.2




More information about the vlc-devel mailing list