changeset 34406:2364585f3f1e

Allow Windows style CDROM device names for Wine port.
author ib
date Tue, 03 Jan 2012 16:17:21 +0000
parents 35fd66684548
children 614c99d4cbbf
files gui/win32/interface.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/interface.c	Tue Jan 03 16:16:04 2012 +0000
+++ b/gui/win32/interface.c	Tue Jan 03 16:17:21 2012 +0000
@@ -245,6 +245,12 @@
 #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)
             {