Mercurial > libdvdnav.hg
comparison vm.c @ 80:aa2a6e5d14cb src
Slight changes to help debugging.
author | jcdutton |
---|---|
date | Thu, 29 Aug 2002 05:33:54 +0000 |
parents | 731834155645 |
children | 033f011d8152 |
comparison
equal
deleted
inserted
replaced
79:96707bfb63d7 | 80:aa2a6e5d14cb |
---|---|
852 assert((vm->state).VTS_TTN_REG <= ptt_srpt->nr_of_srpts); | 852 assert((vm->state).VTS_TTN_REG <= ptt_srpt->nr_of_srpts); |
853 assert(get_PGCN() == ptt_srpt->title[(vm->state).VTS_TTN_REG - 1].ptt[0].pgcn); | 853 assert(get_PGCN() == ptt_srpt->title[(vm->state).VTS_TTN_REG - 1].ptt[0].pgcn); |
854 assert(1 == ptt_srpt->title[(vm->state).VTS_TTN_REG - 1].ptt[0].pgn); | 854 assert(1 == ptt_srpt->title[(vm->state).VTS_TTN_REG - 1].ptt[0].pgn); |
855 #endif | 855 #endif |
856 (vm->state).PTTN_REG = (vm->state).pgN; | 856 (vm->state).PTTN_REG = (vm->state).pgN; |
857 } | 857 } else { |
858 /* FIXME: Handle RANDOM or SHUFFLE titles. */ | |
859 fprintf(MSG_OUT, "libdvdnav: RANDOM or SHUFFLE titles are NOT handled yet.\n"); | |
860 } | |
861 | |
858 } | 862 } |
859 | 863 |
860 return 0; | 864 return 0; |
861 } | 865 } |
862 | 866 |
947 #endif | 951 #endif |
948 | 952 |
949 assert((vm->state).pgN > 0); | 953 assert((vm->state).pgN > 0); |
950 if((vm->state).pgN > (vm->state).pgc->nr_of_programs) { | 954 if((vm->state).pgN > (vm->state).pgc->nr_of_programs) { |
951 #ifdef TRACE | 955 #ifdef TRACE |
952 fprintf(MSG_OUT, "libdvdnav: (vm->state).pgN (%i) == pgc->nr_of_programs + 1 (%i)\n", | 956 fprintf(MSG_OUT, "libdvdnav: play_PG: (vm->state).pgN (%i) > pgc->nr_of_programs (%i)\n", |
953 (vm->state).pgN, (vm->state).pgc->nr_of_programs + 1); | 957 (vm->state).pgN, (vm->state).pgc->nr_of_programs ); |
954 #endif | 958 #endif |
955 /*assert((vm->state).pgN == (vm->state).pgc->nr_of_programs + 1);*/ | 959 assert((vm->state).pgN == (vm->state).pgc->nr_of_programs + 1); |
956 return play_PGC_post(vm); | 960 return play_PGC_post(vm); |
957 } | 961 } |
958 | 962 |
959 (vm->state).cellN = (vm->state).pgc->program_map[(vm->state).pgN - 1]; | 963 (vm->state).cellN = (vm->state).pgc->program_map[(vm->state).pgN - 1]; |
960 | 964 |
969 #endif | 973 #endif |
970 | 974 |
971 assert((vm->state).cellN > 0); | 975 assert((vm->state).cellN > 0); |
972 if((vm->state).cellN > (vm->state).pgc->nr_of_cells) { | 976 if((vm->state).cellN > (vm->state).pgc->nr_of_cells) { |
973 #ifdef TRACE | 977 #ifdef TRACE |
974 fprintf(MSG_OUT, "libdvdnav: (vm->state).cellN (%i) == pgc->nr_of_cells + 1 (%i)\n", | 978 fprintf(MSG_OUT, "libdvdnav: (vm->state).cellN (%i) > pgc->nr_of_cells (%i)\n", |
975 (vm->state).cellN, (vm->state).pgc->nr_of_cells + 1); | 979 (vm->state).cellN, (vm->state).pgc->nr_of_cells ); |
976 #endif | 980 #endif |
977 assert((vm->state).cellN == (vm->state).pgc->nr_of_cells + 1); | 981 assert((vm->state).cellN == (vm->state).pgc->nr_of_cells + 1); |
978 return play_PGC_post(vm); | 982 return play_PGC_post(vm); |
979 } | 983 } |
980 | 984 |
1123 | 1127 |
1124 #ifdef TRACE | 1128 #ifdef TRACE |
1125 fprintf(MSG_OUT, "libdvdnav: play_PGC_post:\n"); | 1129 fprintf(MSG_OUT, "libdvdnav: play_PGC_post:\n"); |
1126 #endif | 1130 #endif |
1127 | 1131 |
1128 assert((vm->state).pgc->still_time == 0); /* FIXME $$$ */ | 1132 /* FIXME Implement PGC Stills. Currently only Cell stills work */ |
1133 assert((vm->state).pgc->still_time == 0); | |
1129 | 1134 |
1130 /* eval -> updates the state and returns either | 1135 /* eval -> updates the state and returns either |
1131 - some kind of jump (Jump(TT/SS/VTS_TTN/CallSS/link C/PG/PGC/PTTN) | 1136 - some kind of jump (Jump(TT/SS/VTS_TTN/CallSS/link C/PG/PGC/PTTN) |
1132 - or a error (are there more cases?) | 1137 - or a error (are there more cases?) |
1133 - if you got to the end of the post_cmds, then what ?? */ | 1138 - if you got to the end of the post_cmds, then what ?? */ |
1817 return pgcit; | 1822 return pgcit; |
1818 } | 1823 } |
1819 | 1824 |
1820 /* | 1825 /* |
1821 * $Log$ | 1826 * $Log$ |
1827 * Revision 1.28 2002/08/29 05:33:54 jcdutton | |
1828 * Slight changes to help debugging. | |
1829 * | |
1822 * Revision 1.27 2002/08/29 04:01:43 jcdutton | 1830 * Revision 1.27 2002/08/29 04:01:43 jcdutton |
1823 * Remove an assert() so that user initiated jumps to particlar menus does not seg fault if | 1831 * Remove an assert() so that user initiated jumps to particlar menus does not seg fault if |
1824 * the menu requested does not exist. | 1832 * the menu requested does not exist. |
1825 * | 1833 * |
1826 * Revision 1.26 2002/08/27 19:15:08 mroi | 1834 * Revision 1.26 2002/08/27 19:15:08 mroi |