[vlc-commits] access: dvdread: move sub cell lookup into debug

Francois Cartegnie git at videolan.org
Sun Sep 15 19:24:56 CEST 2019


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug 16 16:34:33 2019 +0200| [b1bcd025044442a828d300880ff25c7af31f0998] | committer: Francois Cartegnie

access: dvdread: move sub cell lookup into debug

(cherry picked from commit 634a00029d949c55d0335eb66aa9d1b593ae6d70)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b1bcd025044442a828d300880ff25c7af31f0998
---

 modules/access/dvdread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 3b0cfb9ea5..c2f0e8fd4b 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -1080,7 +1080,6 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
     int i_chapter = 0;
     int i_cell = 0;
     int i_vobu = 0;
-    int i_sub_cell = 0;
     int i_block;
 
 #define p_pgc p_sys->p_cur_pgc
@@ -1133,6 +1132,8 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
         i_vobu++;
     }
 
+#if 1
+    int i_sub_cell = 0;
     /* Find sub_cell */
     while( p_vts->vts_c_adt->cell_adr_table[i_sub_cell].start_sector <
            p_vts->vts_vobu_admap->vobu_start_sectors[i_vobu-1] )
@@ -1140,7 +1141,6 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
         i_sub_cell++;
     }
 
-#if 1
     msg_Dbg( p_demux, "cell %d i_sub_cell %d chapter %d vobu %d "
              "cell_sector %d vobu_sector %d sub_cell_sector %d",
              i_cell, i_sub_cell, i_chapter, i_vobu,



More information about the vlc-commits mailing list