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>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8882 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-10 22:48:49 +00:00
parent 88ddf79953
commit 2d6269f3d4
1 changed files with 2 additions and 3 deletions

View File

@ -654,10 +654,9 @@ static dvd_file_t *DVDOpenVOBPath( dvd_reader_t *dvd, int title, int menu )
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;
}