]> git.sesse.net Git - vlc/commitdiff
macosx gui: use vlc_path2uri.
authorKonstantin Pavlov <thresh@videolan.org>
Tue, 21 Aug 2012 11:19:50 +0000 (15:19 +0400)
committerKonstantin Pavlov <thresh@videolan.org>
Tue, 21 Aug 2012 13:29:23 +0000 (17:29 +0400)
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/CoreInteraction.m
modules/gui/macosx/MainWindow.m
modules/gui/macosx/intf.m
modules/gui/macosx/open.m
modules/gui/macosx/playlist.m

index 0c51b99236492221d12f9cf8fa7899a80cbce3b2..f01d9cdefd6e7e4dbc6316de46f8b3bf66e6fdc4 100644 (file)
@@ -305,7 +305,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
 {
     if (returnCode == NSOKButton)
     {
-        [self setMRL: [NSString stringWithUTF8String:make_URI([[[panel URL] path] UTF8String], NULL)]];
+        [self setMRL: [NSString stringWithUTF8String:vlc_path2uri([[[panel URL] path] UTF8String], NULL)]];
         [self updateOKButton];
         [self updateDropView];
     }
@@ -530,7 +530,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
             NSArray *values = [[paste propertyListForType: NSFilenamesPboardType] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
 
             if ([values count] > 0) {
-                [self setMRL: [NSString stringWithUTF8String:make_URI([[values objectAtIndex:0] UTF8String], NULL)]];
+                [self setMRL: [NSString stringWithUTF8String:vlc_path2uri([[values objectAtIndex:0] UTF8String], NULL)]];
                 [self updateOKButton];
                 [self updateDropView];
                 return YES;
index 8a88e79bb109f7db07190b6eaf34f6b247cd7bb8..9c820832b731b51e32ae63a2355f1cb3f0806370 100644 (file)
@@ -553,7 +553,7 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
 
             if( count == 1 && p_input )
             {
-                b_returned = input_AddSubtitle( p_input, make_URI([[o_values objectAtIndex:0] UTF8String], NULL), true );
+                b_returned = input_AddSubtitle( p_input, vlc_path2uri([[o_values objectAtIndex:0] UTF8String], NULL), true );
                 vlc_object_release( p_input );
                 if( !b_returned )
                     return YES;
@@ -564,7 +564,7 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
             for( NSUInteger i = 0; i < count; i++)
             {
                 NSDictionary *o_dic;
-                char *psz_uri = make_URI([[o_values objectAtIndex:i] UTF8String], NULL);
+                char *psz_uri = vlc_path2uri([[o_values objectAtIndex:i] UTF8String], NULL);
                 if( !psz_uri )
                     continue;
 
index 95f2c23928f82337f52e0bfce75eae5911137d06..0f59ca68beffffb5d6bef5029acd95e6ae5b5d6d 100644 (file)
@@ -2743,7 +2743,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
         for( NSUInteger i = 0; i < count; i++)
         {
             NSDictionary *o_dic;
-            char *psz_uri = make_URI([[o_values objectAtIndex:i] UTF8String], NULL);
+            char *psz_uri = vlc_path2uri([[o_values objectAtIndex:i] UTF8String], NULL);
             if( !psz_uri )
                 continue;
 
index 1e72f4957a4ab2dbec3809a55d00ed316731fb56..50ef6436c9af799c84aa9e92c8b10d9d777dcc40 100644 (file)
@@ -918,7 +918,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 - (void)application:(NSApplication *)o_app openFiles:(NSArray *)o_names
 {
     BOOL b_autoplay = config_GetInt( VLCIntf, "macosx-autoplay" );
-    char *psz_uri = make_URI([[o_names objectAtIndex:0] UTF8String], "file" );
+    char *psz_uri = vlc_path2uri([[o_names objectAtIndex:0] UTF8String], "file" );
 
     // try to add file as subtitle
     if( [o_names count] == 1 && psz_uri )
@@ -942,7 +942,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     NSMutableArray *o_result = [NSMutableArray arrayWithCapacity: [o_sorted_names count]];
     for( int i = 0; i < [o_sorted_names count]; i++ )
     {
-        psz_uri = make_URI([[o_sorted_names objectAtIndex: i] UTF8String], "file" );
+        psz_uri = vlc_path2uri([[o_sorted_names objectAtIndex: i] UTF8String], "file" );
         if( !psz_uri )
             continue;
 
index 6f7d4b84b4d085e02f81b1105332b0916bf6420d..6f7078ef641bccfa9f1b55defa869a508465345d 100644 (file)
@@ -670,7 +670,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
         for( NSUInteger i = 0; i < count; i++ )
         {
             NSDictionary *o_dic;
-            char *psz_uri = make_URI([[o_values objectAtIndex:i] UTF8String], "file");
+            char *psz_uri = vlc_path2uri([[o_values objectAtIndex:i] UTF8String], "file");
             if( !psz_uri )
                 continue;
 
@@ -699,7 +699,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
         [[NSFileManager defaultManager] fileExistsAtPath:o_file_path isDirectory:&b_dir];
 
-        char *psz_uri = make_URI([o_file_path UTF8String], "file");
+        char *psz_uri = vlc_path2uri([o_file_path UTF8String], "file");
         if( !psz_uri ) return;
 
         NSMutableString *o_mrl_string = [NSMutableString stringWithUTF8String: psz_uri ];
index cc15f2e94ce5c99ac562478343e436d20373f0fd..9f42b17590a3ce63ed4333a0dc854190617f0673 100644 (file)
 
         if (count == 1 && p_input)
         {
-            b_returned = input_AddSubtitle( p_input, make_URI([[o_values objectAtIndex:0] UTF8String], NULL), true );
+            b_returned = input_AddSubtitle( p_input, vlc_path2uri([[o_values objectAtIndex:0] UTF8String], NULL), true );
             vlc_object_release( p_input );
             if(!b_returned)
                 return YES;
         for( NSUInteger i = 0; i < count; i++)
         {
             NSDictionary *o_dic;
-            char *psz_uri = make_URI([[o_values objectAtIndex:i] UTF8String], NULL);
+            char *psz_uri = vlc_path2uri([[o_values objectAtIndex:i] UTF8String], NULL);
             if( !psz_uri )
                 continue;