[MPlayer-dev-eng] [PATCH] Fix for DVD playback in directory mode

Tomas Hurka tom at hukatronic.cz
Mon Jan 6 21:51:38 CET 2003


Hi Alex,

Alex Beregszaszi  wrote at  Sun, 22 Dec 2002 :
> Please send unified diff (diff -u)
Ok, here it is:

Index: dvd_reader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/dvd_reader.c,v
retrieving revision 1.4
diff -u -r1.4 dvd_reader.c
--- dvd_reader.c	16 Sep 2002 20:46:31 -0000	1.4
+++ dvd_reader.c	28 Dec 2002 17:13:17 -0000
@@ -654,10 +654,9 @@
             dvd_file->title_sizes[ i ] = fileinfo.st_size / DVD_VIDEO_LB_LEN;
             dvd_file->title_devs[ i ] = DVDinput_open( full_path );
             dvd_file->filesize += dvd_file->title_sizes[ i ];
+            DVDinput_seek( dvd_file->title_devs[ i ], 0, DVDINPUT_SEEK_KEY );
         }
-        if( dvd_file->title_devs[ 0 ] ) {
-	    DVDinput_seek( dvd_file->title_devs[ 0 ], 0, DVDINPUT_SEEK_KEY );
-	} else {
+        if( !dvd_file->title_devs[ 0 ] ) {
             free( dvd_file );
             return 0;
         }

Bye,
---
Tomas Hurka
tom at hukatronic.cz
NeXTMAIL and MIME OK


More information about the MPlayer-dev-eng mailing list