]> git.sesse.net Git - vlc/commitdiff
* ./plugins/dvd/dvd_access.c, plugins/dvd/dvd_seek.c: very minor cosmetic
authorSam Hocevar <sam@videolan.org>
Tue, 21 May 2002 00:34:41 +0000 (00:34 +0000)
committerSam Hocevar <sam@videolan.org>
Tue, 21 May 2002 00:34:41 +0000 (00:34 +0000)
    fixes.

include/defs.h.in
plugins/dvd/dvd_access.c
plugins/dvd/dvd_seek.c

index 978566ed9fee9c82bd17a57505d7895be5761395..8f9f18935f2a59601fac390594b6f17a3b9be42e 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
index 3071e3c11bc7219975438455efdeeb12e74e70ea..307fffb37d6b81c12eaae250766ba994ba84237b 100644 (file)
@@ -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: Stéphane 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 */
index 163e94f50d904b594888eca8f2b028d5e544a09a..2d2d8ca55aad2d9fd5c0617acf0e76dc96e7c4ce 100644 (file)
@@ -1,7 +1,7 @@
 /* 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: Stéphane 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;