comparison searching.c @ 297:eb96940d93e0 src

in dvdnav_sector_search() when playing multiangle titles skip cells not corresponding to BLOCK_MODE_FIRST_CELL
author nicodvb
date Sun, 29 Apr 2007 20:20:42 +0000
parents 2146ff691bcd
children 4e24652c5ddf
comparison
equal deleted inserted replaced
296:044e33c6ab04 297:eb96940d93e0
272 } 272 }
273 273
274 found = 0; 274 found = 0;
275 for(cell_nr = first_cell_nr; (cell_nr <= last_cell_nr) && !found; cell_nr ++) { 275 for(cell_nr = first_cell_nr; (cell_nr <= last_cell_nr) && !found; cell_nr ++) {
276 cell = &(state->pgc->cell_playback[cell_nr-1]); 276 cell = &(state->pgc->cell_playback[cell_nr-1]);
277 if(cell->block_type == BLOCK_TYPE_ANGLE_BLOCK && cell->block_mode != BLOCK_MODE_FIRST_CELL)
278 continue;
277 length = cell->last_sector - cell->first_sector + 1; 279 length = cell->last_sector - cell->first_sector + 1;
278 if (target >= length) { 280 if (target >= length) {
279 target -= length; 281 target -= length;
280 } else { 282 } else {
281 /* convert the target sector from Cell-relative to absolute physical sector */ 283 /* convert the target sector from Cell-relative to absolute physical sector */