[MPlayer-cvslog] r34494 - trunk/gui/win32/interface.c

ib subversion at mplayerhq.hu
Tue Jan 3 17:17:21 CET 2012


Author: ib
Date: Tue Jan  3 17:17:21 2012
New Revision: 34494

Log:
Allow Windows style CDROM device names for Wine port.

Modified:
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Tue Jan  3 17:16:04 2012	(r34493)
+++ trunk/gui/win32/interface.c	Tue Jan  3 17:17:21 2012	(r34494)
@@ -245,6 +245,12 @@ static void guiSetEvent(int event)
 #endif
             int i_tracks;
 
+#ifdef __WINE__
+            // cdrom_device is in the Windows style (D:\), which needs to be
+            // converted for MPlayer, so that it will find the device in the
+            // Linux filesystem.
+            cdrom_device = unix_device(cdrom_device);
+#endif
             cd = cdda_identify(cdrom_device, 0, NULL);
             if (cd)
             {


More information about the MPlayer-cvslog mailing list