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

ib subversion at mplayerhq.hu
Thu Oct 20 12:41:32 CEST 2011


Author: ib
Date: Thu Oct 20 12:41:31 2011
New Revision: 34215

Log:
Revise comment on filename conversion in the Wine port.

Explain why the conversion is necessary.

Modified:
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Tue Oct 18 14:45:24 2011	(r34214)
+++ trunk/gui/win32/interface.c	Thu Oct 20 12:41:31 2011	(r34215)
@@ -380,8 +380,11 @@ void uiSetFileName(char *dir, char *name
 
     filename = guiInfo.Filename;
 #ifdef __WINE__
-    // if filename is in Windows format, convert it
-    // so that MPlayer will find it in the Linux filesystem
+    // When the GUI receives the files to be played in guiPlaylistInitialize()
+    // and guiPlaylistAdd(), it calls import_file_into_gui() where the call of
+    // Wine's GetFullPathName() converts each file name into the Windows style
+    // (C:\path\to\file), which needs to be reconverted for MPlayer, so that
+    // it will find the filename in the Linux filesystem.
     filename = unix_name(filename);
 #endif
     guiInfo.StreamType = type;


More information about the MPlayer-cvslog mailing list