[Mplayer-cvslog] CVS: main/libmpdvdkit2 dvd_reader.c,1.4,1.5

Arpi of Ize arpi at mplayerhq.hu
Fri Jan 10 23:48:52 CET 2003


Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/var/tmp.root/cvs-serv27694

Modified Files:
	dvd_reader.c 
Log Message:
Function DVDOpenVOBPath only decrypts first VOB file and since each VOB file has
separate structure for title key, all other title keys remains empty. My
fix is very conservative and simply tries to find title key for every VOB file.
Tomas Hurka <tom at hukatronic.cz>


Index: dvd_reader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/dvd_reader.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- dvd_reader.c	16 Sep 2002 20:46:31 -0000	1.4
+++ dvd_reader.c	10 Jan 2003 22:48:49 -0000	1.5
@@ -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;
         }



More information about the MPlayer-cvslog mailing list