Commit f91631ad authored by Sam Hocevar's avatar Sam Hocevar
Browse files

* ./plugins/dvd/dvd_access.c, plugins/dvd/dvd_seek.c: very minor cosmetic

    fixes.
parent 75424d35
/* include/defs.h.in. Generated automatically from configure.in by autoheader. */
/* include/defs.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if using alloca.c. */
#undef C_ALLOCA
......
......@@ -8,7 +8,7 @@
* -dvd_udf to find files
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: dvd_access.c,v 1.16 2002/05/20 22:45:03 sam Exp $
* $Id: dvd_access.c,v 1.17 2002/05/21 00:34:41 sam Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
*
......@@ -442,7 +442,7 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
/* Area definition */
p_input->stream.p_selected_area->i_start = LB2OFF( i_first );
p_input->stream.p_selected_area->i_size =
LB2OFF( i_last - p_dvd->i_vts_lb + 1 );
LB2OFF( i_last + 1 - p_dvd->i_vts_lb );
/* Destroy obsolete ES by reinitializing programs */
DVDFlushStream( p_input );
......@@ -458,7 +458,7 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
p_input->stream.pp_programs[p_dvd->i_angle-1] );
intf_WarnMsg( 3, "dvd info: title first %i, last %i, size %i",
i_first, i_last, i_last - p_dvd->i_vts_lb + 1 );
i_first, i_last, i_last + 1 - p_dvd->i_vts_lb );
IfoPrintTitle( p_dvd );
/* No PSM to read in DVD mode, we already have all information */
......
/* dvd_seek.c: functions to navigate through DVD.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: dvd_seek.c,v 1.7 2002/05/20 22:45:03 sam Exp $
* $Id: dvd_seek.c,v 1.8 2002/05/21 00:34:41 sam Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
*
......@@ -192,7 +192,7 @@ int Lb2CellMap( thread_dvd_data_t * p_dvd )
int LbMaxOnce( thread_dvd_data_t * p_dvd )
{
int i_block_once = p_dvd->i_last_lb - p_dvd->i_vts_lb + 1;
int i_block_once = p_dvd->i_last_lb + 1 - p_dvd->i_vts_lb;
/* Get the position of the next cell if we're at cell end */
if( i_block_once <= 0 )
......@@ -229,7 +229,7 @@ int LbMaxOnce( thread_dvd_data_t * p_dvd )
return 0;
}
i_block_once = p_dvd->i_last_lb - p_dvd->i_vts_lb + 1;
i_block_once = p_dvd->i_last_lb + 1 - p_dvd->i_vts_lb;
}
return i_block_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