[DVDnav-discuss] r1211 - trunk/libdvdnav/src/vm/vm.c
erik
subversion at mplayerhq.hu
Sat Jul 31 01:34:24 CEST 2010
Author: erik
Date: Sat Jul 31 01:34:24 2010
New Revision: 1211
Log:
If there is no VMGI or PGCI return instead of try to get them
If there is no menu there isn't much point in trying to jump to them.
Modified:
trunk/libdvdnav/src/vm/vm.c
Modified: trunk/libdvdnav/src/vm/vm.c
==============================================================================
--- trunk/libdvdnav/src/vm/vm.c Sat Jul 31 01:34:21 2010 (r1210)
+++ trunk/libdvdnav/src/vm/vm.c Sat Jul 31 01:34:24 2010 (r1211)
@@ -619,7 +619,9 @@ int vm_jump_menu(vm_t *vm, DVDMenuID_t m
(vm->state).domain = VTSM_DOMAIN;
break;
}
- if(get_PGCIT(vm) && set_MENU(vm, menuid)) {
+ if(vm->vmgi == NULL || vm->vmgi->pgci_ut == NULL)
+ return 0;
+ else if(get_PGCIT(vm) && set_MENU(vm, menuid)) {
process_command(vm, play_PGC(vm));
return 1; /* Jump */
} else {
More information about the DVDnav-discuss
mailing list