[vlc-commits] macos: slightly improved error handling when open files
David Fuhrmann
git at videolan.org
Tue Jun 12 17:13:45 CEST 2012
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Jun 12 17:11:39 2012 +0200| [a89495bbddc454522e777a2f8abf2cb90424787a] | committer: David Fuhrmann
macos: slightly improved error handling when open files
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a89495bbddc454522e777a2f8abf2cb90424787a
---
modules/gui/macosx/intf.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index a123f2c..a9f2e05 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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 )
More information about the vlc-commits
mailing list