changeset 8881:1e40d4a2466f

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@hukatronic.cz>
author arpi
date Fri, 10 Jan 2003 22:48:49 +0000
parents e44d2ac094e8
children 1c44c46ed57f
files libmpdvdkit2/dvd_reader.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdvdkit2/dvd_reader.c	Fri Jan 10 22:41:49 2003 +0000
+++ b/libmpdvdkit2/dvd_reader.c	Fri Jan 10 22:48:49 2003 +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;
         }