Mercurial > libdvdnav.hg
comparison vm.c @ 85:aa14e5673881 src
Add a bit more debug info. Now print PGCN in debug.
author | jcdutton |
---|---|
date | Sun, 01 Sep 2002 10:57:15 +0000 |
parents | 5716523464dd |
children | b1cbe3464fb9 |
comparison
equal
deleted
inserted
replaced
84:ba1121a07120 | 85:aa14e5673881 |
---|---|
108 | 108 |
109 default: | 109 default: |
110 fprintf(MSG_OUT, "libdvdnav: Unknown Domain: -\n"); | 110 fprintf(MSG_OUT, "libdvdnav: Unknown Domain: -\n"); |
111 break; | 111 break; |
112 } | 112 } |
113 fprintf(MSG_OUT, "libdvdnav: VTS:%d PG:%u CELL:%u BLOCK:%u VTS_TTN:%u TTN:%u TT_PGCN:%u\n", | 113 fprintf(MSG_OUT, "libdvdnav: VTS:%d PGC:%d PG:%u CELL:%u BLOCK:%u VTS_TTN:%u TTN:%u TT_PGCN:%u\n", |
114 (vm->state).vtsN, | 114 (vm->state).vtsN, |
115 get_PGCN(vm), | |
115 (vm->state).pgN, | 116 (vm->state).pgN, |
116 (vm->state).cellN, | 117 (vm->state).cellN, |
117 (vm->state).blockN, | 118 (vm->state).blockN, |
118 (vm->state).VTS_TTN_REG, | 119 (vm->state).VTS_TTN_REG, |
119 (vm->state).TTN_REG, | 120 (vm->state).TTN_REG, |
1682 return pgcN; | 1683 return pgcN; |
1683 pgcN++; | 1684 pgcN++; |
1684 } | 1685 } |
1685 fprintf(MSG_OUT, "libdvdnav: get_PGCN failed. Trying to find pgcN in domain %d \n", | 1686 fprintf(MSG_OUT, "libdvdnav: get_PGCN failed. Trying to find pgcN in domain %d \n", |
1686 (vm->state).domain); | 1687 (vm->state).domain); |
1687 assert(0); | 1688 /* assert(0);*/ |
1688 return -1; /* error */ | 1689 return -1; /* error */ |
1689 } | 1690 } |
1690 | 1691 |
1691 int vm_get_video_aspect(vm_t *vm) | 1692 int vm_get_video_aspect(vm_t *vm) |
1692 { | 1693 { |
1815 break; | 1816 break; |
1816 case VTSM_DOMAIN: | 1817 case VTSM_DOMAIN: |
1817 pgcit = get_MENU_PGCIT(vm, vm->vtsi, (vm->state).registers.SPRM[0]); | 1818 pgcit = get_MENU_PGCIT(vm, vm->vtsi, (vm->state).registers.SPRM[0]); |
1818 break; | 1819 break; |
1819 case VMGM_DOMAIN: | 1820 case VMGM_DOMAIN: |
1821 case FP_DOMAIN: | |
1820 pgcit = get_MENU_PGCIT(vm, vm->vmgi, (vm->state).registers.SPRM[0]); | 1822 pgcit = get_MENU_PGCIT(vm, vm->vmgi, (vm->state).registers.SPRM[0]); |
1821 break; | 1823 break; |
1822 default: | 1824 default: |
1823 pgcit = NULL; /* Should never hapen */ | 1825 pgcit = NULL; /* Should never hapen */ |
1824 fprintf(MSG_OUT, "libdvdnav: get_PGCIT: Unknown domain:%d\n", | 1826 fprintf(MSG_OUT, "libdvdnav: get_PGCIT: Unknown domain:%d\n", |
1830 return pgcit; | 1832 return pgcit; |
1831 } | 1833 } |
1832 | 1834 |
1833 /* | 1835 /* |
1834 * $Log$ | 1836 * $Log$ |
1837 * Revision 1.31 2002/09/01 10:57:15 jcdutton | |
1838 * Add a bit more debug info. Now print PGCN in debug. | |
1839 * | |
1835 * Revision 1.30 2002/08/31 10:51:01 jcdutton | 1840 * Revision 1.30 2002/08/31 10:51:01 jcdutton |
1836 * Handle badly written DVDs better. | 1841 * Handle badly written DVDs better. |
1837 * If a Cell has a Cell command pointer, but the PGC Cell command list does not have an | 1842 * If a Cell has a Cell command pointer, but the PGC Cell command list does not have an |
1838 * entry for it, assume that the cell has no cell commands and continue instead of | 1843 * entry for it, assume that the cell has no cell commands and continue instead of |
1839 * assert(). | 1844 * assert(). |