Commit 34337317 authored by Christophe Massiot's avatar Christophe Massiot

Fixed a compile probleme on machine without a dvd player :ppppp

Maybe it would be a good idea to compile the DVD plugin on machines which
have one ? :pppp
parent b9574a95
...@@ -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.3 2001/02/08 08:08:03 stef Exp $ * $Id: input_dvd.c,v 1.4 2001/02/08 11:22:41 massiot Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -177,6 +177,7 @@ static void DVDInit( input_thread_t * p_input ) ...@@ -177,6 +177,7 @@ static void DVDInit( input_thread_t * p_input )
IfoRead( &(p_method->ifo) ); IfoRead( &(p_method->ifo) );
intf_Msg( "Ifo: Initialized" ); intf_Msg( "Ifo: Initialized" );
#if defined( HAVE_SYS_DVDIO_H ) || defined( LINUX_DVD )
/* CSS authentication and keys */ /* CSS authentication and keys */
if( ( p_method->b_encrypted = DVDCheckCSS( p_input ) ) ) if( ( p_method->b_encrypted = DVDCheckCSS( p_input ) ) )
{ {
...@@ -200,6 +201,7 @@ static void DVDInit( input_thread_t * p_input ) ...@@ -200,6 +201,7 @@ static void DVDInit( input_thread_t * p_input )
CSSGetKeys( &(p_method->css) ); CSSGetKeys( &(p_method->css) );
intf_Msg( "CSS: Initialized" ); intf_Msg( "CSS: Initialized" );
} }
#endif
/* FIXME: Kludge beginning of vts_01_1.vob */ /* FIXME: Kludge beginning of vts_01_1.vob */
i_start = p_method->ifo.p_vts[0].i_pos + i_start = p_method->ifo.p_vts[0].i_pos +
...@@ -425,6 +427,7 @@ static int DVDRead( input_thread_t * p_input, ...@@ -425,6 +427,7 @@ static int DVDRead( input_thread_t * p_input,
/* Reads from DVD */ /* Reads from DVD */
readv( p_input->i_handle, p_vec, p_method->i_read_once ); readv( p_input->i_handle, p_vec, p_method->i_read_once );
#if defined( HAVE_SYS_DVDIO_H ) || defined( LINUX_DVD )
if( p_method->b_encrypted ) if( p_method->b_encrypted )
{ {
for( i=0 ; i<p_method->i_read_once ; i++ ) for( i=0 ; i<p_method->i_read_once ; i++ )
...@@ -435,6 +438,7 @@ static int DVDRead( input_thread_t * p_input, ...@@ -435,6 +438,7 @@ static int DVDRead( input_thread_t * p_input,
((u8*)(p_vec[i].iov_base))[0x14] &= 0x8F; ((u8*)(p_vec[i].iov_base))[0x14] &= 0x8F;
} }
} }
#endif
/* Update netlist indexes */ /* Update netlist indexes */
input_NetlistMviovec( p_netlist, p_method->i_read_once ); input_NetlistMviovec( p_netlist, p_method->i_read_once );
......
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