]> git.sesse.net Git - vlc/commitdiff
* Fix /dev/di bug
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 8 Feb 2004 20:08:28 +0000 (20:08 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 8 Feb 2004 20:08:28 +0000 (20:08 +0000)
  Though this still remains a hack. People should just use 'Open Disc' menu.
  I see no way to retrieve the original (non parition version) /dev entry,
  from the mounted drive.

modules/gui/macosx/playlist.m

index 08ee6206be64153c8e826105662500cd69c251be..4a42d9ec9209b088d4e5bd91eba5f55ea40c68be 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface module
  *****************************************************************************
  * Copyright (C) 2002-2004 VideoLAN
- * $Id: playlist.m,v 1.56 2004/02/06 04:51:02 hartman Exp $
+ * $Id: playlist.m,v 1.57 2004/02/08 20:08:28 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <hartman at videolan dot org>
@@ -458,13 +458,10 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
             /* All of this is to make sure CD's play when you D&D them on VLC */
             /* Converts mountpoint to a /dev file */
             struct statfs *buf;
-            char *psz_dev, *temp;
+            char *psz_dev;
             buf = (struct statfs *) malloc (sizeof(struct statfs));
             statfs( [o_uri fileSystemRepresentation], buf );
             psz_dev = strdup(buf->f_mntfromname);
-            free( buf );
-            temp = strrchr( psz_dev , 's' );
-            psz_dev[temp - psz_dev] = '\0';
             o_uri = [NSString stringWithCString: psz_dev ];
         }