[MPlayer-cygwin] -dvd-device problem

Diego Biurrun diego at biurrun.de
Fri May 20 13:42:34 CEST 2005


On Fri, May 20, 2005 at 01:11:24PM +0200, Michael Dürig wrote:
> > > I figured this is a bug in dvd_reader.c and suggest the following patch:
> > 
> > Could you test the attached patch instead?
> Sorry I dont get you. Test which patch instead of what?

No wonder, I forgot to attach it...  One more try, here it is for real.

Diego
-------------- next part --------------
Index: libmpdvdkit2/dvd_reader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/dvd_reader.c,v
retrieving revision 1.12
diff -u -r1.12 dvd_reader.c
--- libmpdvdkit2/dvd_reader.c	11 Mar 2005 02:40:28 -0000	1.12
+++ libmpdvdkit2/dvd_reader.c	16 May 2005 16:46:42 -0000
@@ -45,7 +45,7 @@
 #include </usr/conf/h/mnttab.h>
 #elif defined(SYS_BSD)
 #include <fstab.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
 #include <mntent.h>
 #endif
 
@@ -320,7 +320,7 @@
 	char *path_copy;
 #if defined(SYS_BSD)
 	struct fstab* fe;
-#elif defined(__sun) || defined(__linux__)
+#elif defined(__sun) || defined(__linux__) || defined(__CYGWIN__)
 	FILE *mntfile;
 #endif
 
@@ -393,7 +393,7 @@
 	    }
 	    fclose( mntfile );
 	}
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
         mntfile = fopen( MOUNTED, "r" );
         if( mntfile ) {
             struct mntent *me;
@@ -412,7 +412,7 @@
             }
             fclose( mntfile );
 	}
-#elif defined(WIN32)	
+#elif defined(__MINGW32__)	
 	dev_name = strdup(path);
 	auth_drive = DVDOpenImageFile( path, have_css );
 #endif


More information about the MPlayer-cygwin mailing list