Mercurial > libdvdnav.hg
comparison vm/vm.c @ 345:f051b111ef50 src
10l to me: in vm_get_current_menu() I forgot to attach
Erik's patch that returned 0 if get_PGCIT() fails
author | nicodvb |
---|---|
date | Tue, 22 Apr 2008 07:36:49 +0000 |
parents | fb2fbd4cfbf6 |
children | 9a9d15ed0599 |
comparison
equal
deleted
inserted
replaced
344:fb2fbd4cfbf6 | 345:f051b111ef50 |
---|---|
610 int vm_get_current_menu(vm_t *vm, int *menuid) { | 610 int vm_get_current_menu(vm_t *vm, int *menuid) { |
611 pgcit_t* pgcit; | 611 pgcit_t* pgcit; |
612 int pgcn; | 612 int pgcn; |
613 pgcn = (vm->state).pgcN; | 613 pgcn = (vm->state).pgcN; |
614 pgcit = get_PGCIT(vm); | 614 pgcit = get_PGCIT(vm); |
615 if(pgcit==NULL) return 0; | |
615 *menuid = pgcit->pgci_srp[pgcn - 1].entry_id & 0xf ; | 616 *menuid = pgcit->pgci_srp[pgcn - 1].entry_id & 0xf ; |
616 return 1; | 617 return 1; |
617 } | 618 } |
618 | 619 |
619 int vm_get_current_title_part(vm_t *vm, int *title_result, int *part_result) { | 620 int vm_get_current_title_part(vm_t *vm, int *title_result, int *part_result) { |