Commit 5a796310 authored by Stéphane Borel's avatar Stéphane Borel

-Much cleaning in css code. It should work fine now.

Most of DVD with movie in title 1 should work.

To come : support for movie in other titles.
parent 3b3156e1
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* dvd_ifo.c: Functions for ifo parsing * dvd_ifo.c: Functions for ifo parsing
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: dvd_ifo.c,v 1.4 2001/02/09 03:51:42 stef Exp $ * $Id: dvd_ifo.c,v 1.5 2001/02/12 09:58:06 stef Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -1095,7 +1095,11 @@ void IfoRead( ifo_t* p_ifo ) ...@@ -1095,7 +1095,11 @@ void IfoRead( ifo_t* p_ifo )
int i; int i;
off_t i_off; off_t i_off;
/* Video Manager Initialization */
intf_WarnMsg( 2, "Ifo: Initializing VMG" );
p_ifo->vmg = ReadVMG( p_ifo ); p_ifo->vmg = ReadVMG( p_ifo );
/* Video Title Sets initialization */
p_ifo->p_vts = malloc( p_ifo->vmg.mat.i_tts_nb *sizeof(vts_t) ); p_ifo->p_vts = malloc( p_ifo->vmg.mat.i_tts_nb *sizeof(vts_t) );
if( p_ifo->p_vts == NULL ) if( p_ifo->p_vts == NULL )
{ {
...@@ -1106,10 +1110,11 @@ void IfoRead( ifo_t* p_ifo ) ...@@ -1106,10 +1110,11 @@ void IfoRead( ifo_t* p_ifo )
for( i=0 ; i<1/*p_ifo->vmg.mat.i_tts_nb*/ ; i++ ) for( i=0 ; i<1/*p_ifo->vmg.mat.i_tts_nb*/ ; i++ )
{ {
intf_WarnMsg( 3, "######### VTS %d #############\n", i+1 ); intf_WarnMsg( 2, "Ifo: Initializing VTS %d", i+1 );
i_off = p_ifo->vmg.ptt_srpt.p_tts[i].i_ssector *DVD_LB_SIZE; i_off = p_ifo->vmg.ptt_srpt.p_tts[i].i_ssector *DVD_LB_SIZE;
p_ifo->i_pos = lseek( p_ifo->i_fd, i_off, SEEK_SET ); p_ifo->i_pos = lseek( p_ifo->i_fd, i_off, SEEK_SET );
/* FIXME : use udf filesystem to avoid this */ /* FIXME : use udf filesystem to avoid this */
IfoFindVTS( p_ifo ); IfoFindVTS( p_ifo );
p_ifo->p_vts[i] = ReadVTS( p_ifo ); p_ifo->p_vts[i] = ReadVTS( p_ifo );
......
...@@ -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.7 2001/02/12 07:52:40 sam Exp $ * $Id: input_dvd.c,v 1.8 2001/02/12 09:58:06 stef Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -183,6 +183,12 @@ static void DVDInit( input_thread_t * p_input ) ...@@ -183,6 +183,12 @@ static void DVDInit( input_thread_t * p_input )
int i; int i;
p_method->css = CSSInit( p_input->i_handle ); p_method->css = CSSInit( p_input->i_handle );
if( ( p_input->b_error = p_method->css.b_error ) )
{
fprintf( stderr, " boaruf \n" );
return;
}
p_method->css.i_title_nb = p_method->ifo.vmg.mat.i_tts_nb; p_method->css.i_title_nb = p_method->ifo.vmg.mat.i_tts_nb;
if( (p_method->css.p_title_key = if( (p_method->css.p_title_key =
malloc( p_method->css.i_title_nb *sizeof(title_key_t) ) ) == NULL ) malloc( p_method->css.i_title_nb *sizeof(title_key_t) ) ) == NULL )
......
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