Mercurial > libdvdnav.hg
comparison vm/vm.c @ 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 | aee8af592d66 |
children | 6299ccea8a38 |
comparison
equal
deleted
inserted
replaced
253:acd4225262fc | 254:f78669338b49 |
---|---|
1600 return res; | 1600 return res; |
1601 } | 1601 } |
1602 | 1602 |
1603 static int set_FP_PGC(vm_t *vm) { | 1603 static int set_FP_PGC(vm_t *vm) { |
1604 (vm->state).domain = FP_DOMAIN; | 1604 (vm->state).domain = FP_DOMAIN; |
1605 if (!vm->vmgi->first_play_pgc) { | |
1606 return set_PGCN(vm, 1); | |
1607 } | |
1605 (vm->state).pgc = vm->vmgi->first_play_pgc; | 1608 (vm->state).pgc = vm->vmgi->first_play_pgc; |
1606 (vm->state).pgcN = vm->vmgi->vmgi_mat->first_play_pgc; | 1609 (vm->state).pgcN = vm->vmgi->vmgi_mat->first_play_pgc; |
1607 return 1; | 1610 return 1; |
1608 } | 1611 } |
1609 | 1612 |