Support playing DVDs from harddrive directories.

idea from Björn Hermansson < Bjorn dot Hermansson at teliasonera dot com >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15535 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2005-05-21 11:05:45 +00:00
parent d8500a1a3b
commit fe4102bd5c
1 changed files with 4 additions and 4 deletions

View File

@ -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 @@ dvd_reader_t *DVDOpen( const char *path )
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 @@ dvd_reader_t *DVDOpen( const char *path )
}
fclose( mntfile );
}
#elif defined(__linux__)
#elif defined(__linux__) || defined(__CYGWIN__)
mntfile = fopen( MOUNTED, "r" );
if( mntfile ) {
struct mntent *me;
@ -412,7 +412,7 @@ dvd_reader_t *DVDOpen( const char *path )
}
fclose( mntfile );
}
#elif defined(WIN32)
#elif defined(__MINGW32__)
dev_name = strdup(path);
auth_drive = DVDOpenImageFile( path, have_css );
#endif