comparison vm/vm.c @ 411:ce9b314b6e43 src

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.
author erik
date Fri, 30 Jul 2010 23:34:24 +0000
parents 799f85209145
children 34e632fb6a39
comparison
equal deleted inserted replaced
410:799f85209145 411:ce9b314b6e43
617 case DVD_MENU_Angle: 617 case DVD_MENU_Angle:
618 case DVD_MENU_Part: 618 case DVD_MENU_Part:
619 (vm->state).domain = VTSM_DOMAIN; 619 (vm->state).domain = VTSM_DOMAIN;
620 break; 620 break;
621 } 621 }
622 if(get_PGCIT(vm) && set_MENU(vm, menuid)) { 622 if(vm->vmgi == NULL || vm->vmgi->pgci_ut == NULL)
623 return 0;
624 else if(get_PGCIT(vm) && set_MENU(vm, menuid)) {
623 process_command(vm, play_PGC(vm)); 625 process_command(vm, play_PGC(vm));
624 return 1; /* Jump */ 626 return 1; /* Jump */
625 } else { 627 } else {
626 (vm->state).domain = old_domain; 628 (vm->state).domain = old_domain;
627 } 629 }