# HG changeset patch # User mroi # Date 1068836152 0 # Node ID 20d9e588f52cdd9665420e097d39db52ae333d7b # Parent b8a17ff7f989070e5c257baa40a869ae1bbf318b we have a PGC pointer and the PGC number in dvd_state_t, if both are always consistent, get_PGCN() is obsolete -> use an assertion to test this diff -r b8a17ff7f989 -r 20d9e588f52c vm.c --- a/vm.c Mon Nov 10 17:46:53 2003 +0000 +++ b/vm.c Fri Nov 14 18:55:52 2003 +0000 @@ -665,7 +665,7 @@ audioN = 0; if(audioN < 8) { - /* Is there any contol info for this logical stream */ + /* Is there any control info for this logical stream */ if((vm->state).pgc->audio_control[audioN] & (1<<15)) { streamN = ((vm->state).pgc->audio_control[audioN] >> 8) & 0x07; } @@ -1749,8 +1749,10 @@ if (pgcit) { while(pgcN <= pgcit->nr_of_pgci_srp) { - if(pgcit->pgci_srp[pgcN - 1].pgc == (vm->state).pgc) + if(pgcit->pgci_srp[pgcN - 1].pgc == (vm->state).pgc) { + assert((vm->state).pgcN == pgcN); return pgcN; + } pgcN++; } }