Mercurial > libdvdnav.hg
changeset 80:aa2a6e5d14cb src
Slight changes to help debugging.
author | jcdutton |
---|---|
date | Thu, 29 Aug 2002 05:33:54 +0000 |
parents | 96707bfb63d7 |
children | 740552dd7668 |
files | vm.c |
diffstat | 1 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/vm.c Thu Aug 29 04:59:00 2002 +0000 +++ b/vm.c Thu Aug 29 05:33:54 2002 +0000 @@ -854,7 +854,11 @@ assert(1 == ptt_srpt->title[(vm->state).VTS_TTN_REG - 1].ptt[0].pgn); #endif (vm->state).PTTN_REG = (vm->state).pgN; + } else { + /* FIXME: Handle RANDOM or SHUFFLE titles. */ + fprintf(MSG_OUT, "libdvdnav: RANDOM or SHUFFLE titles are NOT handled yet.\n"); } + } return 0; @@ -949,10 +953,10 @@ assert((vm->state).pgN > 0); if((vm->state).pgN > (vm->state).pgc->nr_of_programs) { #ifdef TRACE - fprintf(MSG_OUT, "libdvdnav: (vm->state).pgN (%i) == pgc->nr_of_programs + 1 (%i)\n", - (vm->state).pgN, (vm->state).pgc->nr_of_programs + 1); + fprintf(MSG_OUT, "libdvdnav: play_PG: (vm->state).pgN (%i) > pgc->nr_of_programs (%i)\n", + (vm->state).pgN, (vm->state).pgc->nr_of_programs ); #endif - /*assert((vm->state).pgN == (vm->state).pgc->nr_of_programs + 1);*/ + assert((vm->state).pgN == (vm->state).pgc->nr_of_programs + 1); return play_PGC_post(vm); } @@ -971,8 +975,8 @@ assert((vm->state).cellN > 0); if((vm->state).cellN > (vm->state).pgc->nr_of_cells) { #ifdef TRACE - fprintf(MSG_OUT, "libdvdnav: (vm->state).cellN (%i) == pgc->nr_of_cells + 1 (%i)\n", - (vm->state).cellN, (vm->state).pgc->nr_of_cells + 1); + fprintf(MSG_OUT, "libdvdnav: (vm->state).cellN (%i) > pgc->nr_of_cells (%i)\n", + (vm->state).cellN, (vm->state).pgc->nr_of_cells ); #endif assert((vm->state).cellN == (vm->state).pgc->nr_of_cells + 1); return play_PGC_post(vm); @@ -1125,7 +1129,8 @@ fprintf(MSG_OUT, "libdvdnav: play_PGC_post:\n"); #endif - assert((vm->state).pgc->still_time == 0); /* FIXME $$$ */ + /* FIXME Implement PGC Stills. Currently only Cell stills work */ + assert((vm->state).pgc->still_time == 0); /* eval -> updates the state and returns either - some kind of jump (Jump(TT/SS/VTS_TTN/CallSS/link C/PG/PGC/PTTN) @@ -1819,6 +1824,9 @@ /* * $Log$ + * Revision 1.28 2002/08/29 05:33:54 jcdutton + * Slight changes to help debugging. + * * Revision 1.27 2002/08/29 04:01:43 jcdutton * Remove an assert() so that user initiated jumps to particlar menus does not seg fault if * the menu requested does not exist.