changeset 254:f78669338b49 src

Fix segfault if the DVD does not contain a FP_PGC. Just select the first Menu PGC instead.
author jcdutton
date Fri, 22 Oct 2004 12:14:12 +0000
parents acd4225262fc
children 3e5192f8113f
files vm/vm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;