Mercurial > libdvdnav.hg
diff vm/vm.h @ 409:9b8bfc56a7fe src
Add dvdnav_program_play & dvdnav_current_title_program
Using title parts w/ dvdnav_part_play and dvdnav_current_title_info
is not reliable for use as chapter marks in files made from
transcoding. The start of a part does not necessarily fall strictly
inside the main title. Parts can have an intro sequence before
getting into the title. So we use program boundaries instead of
part markers to test when we have reached a chapter point during
encoding of the title. The same would apply to displaying the
current chapter during playback. The program boundaries
should be checked instead of looking for a part.
Patch from John Stebbins. Thanks!
| author | erik |
|---|---|
| date | Fri, 30 Jul 2010 23:34:16 +0000 |
| parents | 390fbf2a9602 |
| children |
line wrap: on
line diff
--- a/vm/vm.h Fri Jul 30 23:34:13 2010 +0000 +++ b/vm/vm.h Fri Jul 30 23:34:16 2010 +0000 @@ -139,6 +139,7 @@ int vm_jump_pg(vm_t *vm, int pg); int vm_jump_cell_block(vm_t *vm, int cell, int block); int vm_jump_title_part(vm_t *vm, int title, int part); +int vm_jump_title_program(vm_t *vm, int title, int pgcn, int pgn); int vm_jump_top_pg(vm_t *vm); int vm_jump_next_pg(vm_t *vm); int vm_jump_prev_pg(vm_t *vm);
