changeset 216:20d9e588f52c src

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
author mroi
date Fri, 14 Nov 2003 18:55:52 +0000
parents b8a17ff7f989
children eb503714e1c2
files vm.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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++;
     }
   }