]> git.sesse.net Git - vlc/commitdiff
* VLC couldn't handle external links since the playlist API changes. FIXED
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 25 Mar 2004 20:25:04 +0000 (20:25 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 25 Mar 2004 20:25:04 +0000 (20:25 +0000)
modules/gui/macosx/applescript.m

index 9cfd31f161bdc23e7d64efcae81c8dff51695003..5cade7ae5c3842a25ec4dafd1bcc0f6c23b2d816 100644 (file)
         {
             NSURL * o_url;
     
-            int i_mode = PLAYLIST_INSERT;
-            
             playlist_Add( p_playlist, [o_urlString fileSystemRepresentation],
-                          [[o_urlString fileSystemRepresentation] lastPathComponent],
-                          i_mode, PLAYLIST_END );
+                          [[[NSFileManager defaultManager] displayNameAtPath: o_urlString] UTF8String],
+                          PLAYLIST_INSERT, PLAYLIST_END );
 
             o_url = [NSURL fileURLWithPath: o_urlString];
             if( o_url != nil )