]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlist.m
macosx: Don't try to guess a name anymore. This is now done in the core.
[vlc] / modules / gui / macosx / playlist.m
index 379a0138720c9058767cd9e94b00c9ac0d38f150..7ccffecb1550be403b28f64995473122f05aa61e 100644 (file)
             }
         }
     }
-    /* If no name, then make a guess */
-    if( !o_name) o_name = [[NSFileManager defaultManager] displayNameAtPath: o_uri];
 
     if( [[NSFileManager defaultManager] fileExistsAtPath:o_uri isDirectory:&b_dir] && b_dir &&
         [[NSWorkspace sharedWorkspace] getFileSystemInfoForPath: o_uri isRemovable: &b_rem
         o_uri = o_temp;
     }
 
-    p_input = input_item_New( p_playlist, [o_uri fileSystemRepresentation], [o_name UTF8String] );
+    p_input = input_item_New( p_playlist, [o_uri fileSystemRepresentation], o_name ? [o_name UTF8String] : NULL );
     if( !p_input )
     {
         pl_Release( p_intf );