# HG changeset patch # User richwareham # Date 1022774201 0 # Node ID 832ca4921e04dc50ca2f9c88071c2200eb618593 # Parent 04070bfba69b8de135d594bae82ead7c1a4fcb07 Fixed (what appears to be) an error in JumpVTS_PTT implementation, it didn't call play_PGC after jumping. diff -r 04070bfba69b -r 832ca4921e04 decoder.h --- 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 /* vm_cmd_t */ /* Uncomment for tracing */ -/* #define TRACE */ +/* #define TRACE */ typedef enum { LinkNoLink = 0, diff -r 04070bfba69b -r 832ca4921e04 read_cache.c --- 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. */ diff -r 04070bfba69b -r 832ca4921e04 vm.c --- 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!!! *