Re: RELEASE TESTING needed for libdvdread

Aurelien Jacobs <[email protected]> Tue, 20 Sep 2005 23:35:00 +0200
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
--Multipart_Tue__20_Sep_2005_23_35_00_+0200_tpi=aEOA1uzBaL2_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sun, 18 Sep 2005 16:19:56 +0200
Bj|rn Englund <[email protected]> wrote:

> Hi.
> I'm planning to make a new release of libdvdread in about a week.
> Help is needed to test that it works on all differents platforms
> before the release.
> 
> If you have time please test libdvdread from:
> http://www.dtek.chalmers.se/~dvd/dist/libdvdread-0.9.4-cvs.tar.gz or
> cvs

Nice to see that most of the usable parts of the MPlayer diff was
included in cvs :-)
Here is a small diff containing the few remaining MPlayer changes
which shouldn't be controversial. It would be nice to see this
included into next release.

Aurel
--Multipart_Tue__20_Sep_2005_23_35_00_+0200_tpi=aEOA1uzBaL2_
Content-Type: text/plain; name=libdvdread-mp.diff
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=libdvdread-mp.diff

diff -Naur libdvdread-0.9.4-cvs.orig/dvdread/dvd_reader.c libdvdread-0.9.4-cvs/dvdread/dvd_reader.c
--- libdvdread-0.9.4-cvs.orig/dvdread/dvd_reader.c	2005-09-20 23:06:17.000000000 +0200
+++ libdvdread-0.9.4-cvs/dvdread/dvd_reader.c	2005-09-20 23:17:29.000000000 +0200
@@ -33,15 +33,17 @@
 #include <limits.h>
 #include <dirent.h>
  
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__DARWIN__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__DARWIN__) || defined(__DragonFly__)
 #define SYS_BSD 1
 #endif
 
 #if defined(__sun)
 #include <sys/mnttab.h>
+#elif defined(hpux)
+#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
 
@@ -472,7 +474,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
 
@@ -576,7 +578,7 @@
       }
       fclose( mntfile );
     }
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__CYGWIN__)
     mntfile = fopen( MOUNTED, "r" );
     if( mntfile ) {
       struct mntent *me;
@@ -601,6 +603,9 @@
       }
       fclose( mntfile );
     }
+#elif defined(WIN32)
+    dev_name = strdup( path );
+    auth_drive = DVDOpenImageFile( path, have_css );
 #endif
     if( !dev_name ) {
       if(verbose >= 1) {

--Multipart_Tue__20_Sep_2005_23_35_00_+0200_tpi=aEOA1uzBaL2_--