[DVDnav-discuss] r912 - trunk/libdvdnav2/src/searching.c
nicodvb
subversion at mplayerhq.hu
Sun Apr 29 13:20:38 CEST 2007
Author: nicodvb
Date: Sun Apr 29 13:20:37 2007
New Revision: 912
Log:
in dvdnav_time_search() skip secondary angles when searching the cell to jump to
Modified:
trunk/libdvdnav2/src/searching.c
Modified: trunk/libdvdnav2/src/searching.c
==============================================================================
--- trunk/libdvdnav2/src/searching.c (original)
+++ trunk/libdvdnav2/src/searching.c Sun Apr 29 13:20:37 2007
@@ -181,6 +181,8 @@ dvdnav_status_t dvdnav_sector_search(dvd
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 = cell->last_sector - cell->first_sector + 1;
if (target >= length) {
target -= length;
More information about the DVDnav-discuss
mailing list