]> git.sesse.net Git - vlc/commitdiff
MacOS: more compile fixes
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 18 Jul 2010 17:02:03 +0000 (19:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 18 Jul 2010 17:02:03 +0000 (19:02 +0200)
modules/gui/macosx/open.m

index 025c94f2649c128bd073fe6d54d18d9eeca25087..030742625d8361700ca31708f51b12750bd3ae05 100644 (file)
@@ -560,7 +560,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
     [[NSFileManager defaultManager] fileExistsAtPath:o_filename isDirectory:&b_dir];
 
-    char *psz_uri = make_URI([o_filename UTF8String]);
+    char *psz_uri = make_URI([o_filename UTF8String], "file");
     if( !psz_uri ) return;
 
     NSMutableString *o_mrl_string = [NSMutableString stringWithUTF8String: psz_uri ];
@@ -963,7 +963,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
         for( i = 0; i < (int)[o_values count]; i++)
         {
             NSDictionary *o_dic;
-            char *psz_uri = make_URI([[o_values objectAtIndex:i] UTF8String]);
+            char *psz_uri = make_URI([[o_values objectAtIndex:i] UTF8String], "file");
             if( !psz_uri )
                 continue;