macos: slightly improved error handling when open files
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Tue, 12 Jun 2012 15:11:39 +0000 (17:11 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Tue, 12 Jun 2012 15:13:10 +0000 (17:13 +0200)
modules/gui/macosx/intf.m

index a123f2c..a9f2e05 100644 (file)
@@ -935,11 +935,11 @@ static VLCMain *_o_sharedMainInstance = nil;
     {
         psz_uri = make_URI([[o_sorted_names objectAtIndex: i] UTF8String], "file" );
         if( !psz_uri )
-            return NO;
+            continue;
 
         NSDictionary *o_dic = [NSDictionary dictionaryWithObject:[NSString stringWithCString:psz_uri encoding:NSUTF8StringEncoding] forKey:@"ITEM_URL"];
         free( psz_uri );
-        [o_result insertObject: o_dic atIndex: i];
+        [o_result addObject: o_dic];
     }
 
     if( b_autoplay )