mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 11:20:56 +00:00
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:
parent
d8500a1a3b
commit
fe4102bd5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user