macosx: Don't try to guess a name anymore. This is now done in the core.
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 26 Jun 2009 15:08:45 +0000 (17:08 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 26 Jun 2009 15:10:12 +0000 (17:10 +0200)
modules/gui/macosx/playlist.m

index 379a013..7ccffec 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 );