# HG changeset patch # User jcdutton # Date 1098447252 0 # Node ID f78669338b497e3a3890759e04b2470baf205434 # Parent acd4225262fc5fb37bd325e74f38f176486b921b Fix segfault if the DVD does not contain a FP_PGC. Just select the first Menu PGC instead. diff -r acd4225262fc -r f78669338b49 vm/vm.c --- a/vm/vm.c Fri Oct 22 11:36:19 2004 +0000 +++ b/vm/vm.c Fri Oct 22 12:14:12 2004 +0000 @@ -1602,6 +1602,9 @@ static int set_FP_PGC(vm_t *vm) { (vm->state).domain = FP_DOMAIN; + if (!vm->vmgi->first_play_pgc) { + return set_PGCN(vm, 1); + } (vm->state).pgc = vm->vmgi->first_play_pgc; (vm->state).pgcN = vm->vmgi->vmgi_mat->first_play_pgc; return 1;