changeset 37:832ca4921e04 src

Fixed (what appears to be) an error in JumpVTS_PTT implementation, it didn't call play_PGC after jumping.
author richwareham
date Thu, 30 May 2002 15:56:41 +0000
parents 04070bfba69b
children 0d3b83b39f2c
files decoder.h read_cache.c vm.c
diffstat 3 files changed, 15 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/decoder.h	Thu May 30 14:26:59 2002 +0000
+++ b/decoder.h	Thu May 30 15:56:41 2002 +0000
@@ -32,7 +32,7 @@
 #include <dvdread/ifo_types.h> /*  vm_cmd_t */
 
 /* Uncomment for tracing */
-/* #define TRACE */
+/* #define TRACE  */
 
 typedef enum {
   LinkNoLink  = 0,
--- a/read_cache.c	Thu May 30 14:26:59 2002 +0000
+++ b/read_cache.c	Thu May 30 15:56:41 2002 +0000
@@ -31,9 +31,17 @@
 /* Read-ahead cache structure. */
 #if _MULTITHREAD_
 struct read_cache_s {
+
+  /* Bounds on read ahead buffer */
+  off_t      low_bound;
+  off_t      high_bound;
+
+  /* Where we are currently 'reading' from */
+  
   /* Bit of strange cross-linking going on here :) -- Gotta love C :) */
   dvdnav_t    *dvd_self;
 };
+
 #else
 struct read_cache_s {
   /* Read-ahead cache. */
--- a/vm.c	Thu May 30 14:26:59 2002 +0000
+++ b/vm.c	Thu May 30 15:56:41 2002 +0000
@@ -1188,11 +1188,11 @@
     case LinkTailPGC:
       /* Link to Tail??? Program Chain */
       /* BUTTON number:data1 */
-      fprintf(stderr, "libdvdnav: FIXME: LinkTailPGC. What is LinkTailPGC?\n");
+      /* fprintf(stderr, "libdvdnav: FIXME: LinkTailPGC. What is LinkTailPGC?\n"); */
       if(link_values.data1 != 0)
 	(vm->state).HL_BTNN_REG = link_values.data1 << 10;
       link_values = play_PGC_post(vm);
-      break;
+    break;
       
     case LinkRSM:
       {
@@ -1300,7 +1300,7 @@
       assert((vm->state).domain == VTSM_DOMAIN || (vm->state).domain == VTS_DOMAIN); /* ?? */
       if(get_VTS_PTT(vm,(vm->state).vtsN, link_values.data1, link_values.data2) == -1)
 	assert(0);
-      link_values = play_PG(vm);
+      link_values = play_PGC(vm);
       break;
       
     case JumpSS_FP:
@@ -1535,8 +1535,6 @@
   return -1; /*  error */
 }
 
-
-
 static int get_PGC(vm_t *vm, int pgcN)
 {
   /* FIXME: Keep this up to date with the ogle people */
@@ -1679,6 +1677,9 @@
 
 /*
  * $Log$
+ * Revision 1.17  2002/05/30 15:56:41  richwareham
+ * Fixed (what appears to be) an error in JumpVTS_PTT implementation, it didn't call play_PGC after jumping.
+ *
  * Revision 1.16  2002/04/24 21:15:25  jcdutton
  * Quiet please!!!
  *