From: Derk-Jan Hartman Date: Sun, 8 Feb 2004 20:08:28 +0000 (+0000) Subject: * Fix /dev/di bug X-Git-Tag: 0.7.1~191 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fe969c9f2fab3602715613d92796e31f44a1b696;p=vlc * Fix /dev/di bug 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. --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 08ee6206be..4a42d9ec92 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -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 * Derk-Jan Hartman @@ -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 ]; }