Mercurial > libdvdnav.hg
comparison vm/vm.c @ 408:7923e813ec61 src
Make sure part is initialized
part can be left untouched by vm_get_current_title. Having it be
uninitialized and assigned to PTTN_REG would likely be a bad idea.
author | erik |
---|---|
date | Fri, 30 Jul 2010 23:34:13 +0000 |
parents | d16ee5945580 |
children | 9b8bfc56a7fe |
comparison
equal
deleted
inserted
replaced
407:51be513f1a1d | 408:7923e813ec61 |
---|---|
1687 } | 1687 } |
1688 | 1688 |
1689 /* Figure out the correct pgN from the cell and update (vm->state). */ | 1689 /* Figure out the correct pgN from the cell and update (vm->state). */ |
1690 static int set_PGN(vm_t *vm) { | 1690 static int set_PGN(vm_t *vm) { |
1691 int new_pgN = 0; | 1691 int new_pgN = 0; |
1692 int dummy, part; | 1692 int dummy, part = 0; |
1693 | 1693 |
1694 while(new_pgN < (vm->state).pgc->nr_of_programs | 1694 while(new_pgN < (vm->state).pgc->nr_of_programs |
1695 && (vm->state).cellN >= (vm->state).pgc->program_map[new_pgN]) | 1695 && (vm->state).cellN >= (vm->state).pgc->program_map[new_pgN]) |
1696 new_pgN++; | 1696 new_pgN++; |
1697 | 1697 |