[DVDnav-discuss] [Fwd: r858 - trunk/libdvdnav/src/searching.c]

Nico Sabbi nicola_sabbi at fastwebnet.it
Mon Apr 9 20:30:47 CEST 2007



-------- Original Message --------
Subject: r858 - trunk/libdvdnav/src/searching.c
Date: Mon,  9 Apr 2007 11:56:41 +0200 (CEST)
From: nicodvb <subversion at mplayerhq.hu>
To: nicola_sabbi at fastwebnet.it

Author: nicodvb
Date: Mon Apr  9 11:56:41 2007
New Revision: 858

Modified:
    trunk/libdvdnav/src/searching.c

Log:
in dvdnav_time_search() skip secondary angles when searching the cell 
to hump to

Modified: trunk/libdvdnav/src/searching.c
==============================================================================
--- trunk/libdvdnav/src/searching.c	(original)
+++ trunk/libdvdnav/src/searching.c	Mon Apr  9 11:56:41 2007
@@ -139,6 +139,8 @@ dvdnav_status_t dvdnav_time_search(dvdna
    found = 0;
    for(cell_nr = first_cell_nr; (cell_nr <= last_cell_nr) && !found; 
cell_nr ++) {
      cell =  &(state->pgc->cell_playback[cell_nr-1]);
+    if(cell->block_type == BLOCK_TYPE_ANGLE_BLOCK && cell->block_mode 
!= BLOCK_MODE_FIRST_CELL)
+      continue;
      length = dvdnav_convert_time(&cell->playback_time);
      if (target >= length) {
        target -= length;




More information about the DVDnav-discuss mailing list