Commit 6ea68caa authored by Stéphane Borel's avatar Stéphane Borel

Reverted one change from my previous commit: when using title cracking

method in libdvdcss, the key is only checked at title start, not before each
chapter.

The behaviour when we have decrypted the disc key is to check the key before
each seek (although I'm still fighting against a bug).
parent beda2783
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* -dvd_udf to find files * -dvd_udf to find files
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_dvd.c,v 1.89 2001/10/14 03:26:20 stef Exp $ * $Id: input_dvd.c,v 1.90 2001/10/15 13:33:00 stef Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -478,6 +478,13 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area ) ...@@ -478,6 +478,13 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
return -1; return -1;
} }
/*
* Force libdvdcss to check its title key.
* It is only useful for title cracking method. Methods using the decrypted
* disc key are fast enough to check the key at each seek
*/
dvdcss_seek( p_dvd->dvdhandle, p_dvd->i_start, DVDCSS_SEEK_INI );
p_dvd->i_size -= p_dvd->i_sector + 1; p_dvd->i_size -= p_dvd->i_sector + 1;
IfoPrintTitle( p_dvd ); IfoPrintTitle( p_dvd );
...@@ -742,13 +749,6 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area ) ...@@ -742,13 +749,6 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
} }
} }
/*
* Force libdvdcss to check its title key.
* It is only useful for title cracking method. Methods using the decrypted
* disc key are fast enough to check the key at each seek
*/
dvdcss_seek( p_dvd->dvdhandle, p_dvd->i_start, DVDCSS_SEEK_INI );
#define title \ #define title \
p_dvd->p_ifo->vts.title_unit.p_title[p_dvd->i_title_id-1].title p_dvd->p_ifo->vts.title_unit.p_title[p_dvd->i_title_id-1].title
if( p_area->i_angle != p_dvd->i_angle ) if( p_area->i_angle != p_dvd->i_angle )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment