[MPlayer-cygwin] -dvd-device problem

michid at gmail.com michid at gmail.com
Thu May 19 22:43:33 CEST 2005


On win2k I get the following error when I try to use -dvd-device for a 
location other than my dvd drive:

$ ./mplayer -dvd-device f:/dvdfiles/mymovie dvd://
MPlayer dev-CVS-050518-23:08-3.3.3 (C) 2000-2005 MPlayer Team
CPU: Intel  (Family: 8, Stepping: 10)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Menu inited: /home/testi/.mplayer/menu.conf
Playing dvd://.
Reading disc structure, please wait...
libdvdread: Can't open file VIDEO_TS.IFO.
Can't open VMG info!


Exiting... (End of file)

I figured this is a bug in dvd_reader.c and suggest the following patch:

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    19 May 2005 20:17:27 -0000
@@ -413,8 +413,8 @@
              fclose( mntfile );
      }
  #elif defined(WIN32)
-    dev_name = strdup(path);
-    auth_drive = DVDOpenImageFile( path, have_css );
+  // If we get here on win, the only thing which remains to do is
DVDOpenPath I guess.
+  return DVDOpenPath( path );
  #endif
      if( !dev_name ) {
        fprintf( stderr, "libdvdread: Couldn't find device name.\n" );


Michael




More information about the MPlayer-cygwin mailing list