--- src/input/subtitles.c	2007-05-03 10:06:35.593750000 +0200
+++ src/input/subtitles.c	2007-05-03 10:34:29.640625000 +0200
@@ -280,6 +280,11 @@
 
     /* extract filename & dirname from psz_fname */
     tmp = strrchr( psz_fname, DIR_SEP_CHAR );
+#ifdef __MINGW32__
+    if( psz_fname[0] == '/' ) psz_fname++; // skip extra '/'
+    f_fname = strrchr( psz_fname, '/' ); // get last '/'
+    if( f_fname > tmp ) tmp = f_fname; // select real last separator
+#endif
     if( tmp )
     {
         int dirlen = 0;
