Mercurial > libdvdnav.hg
comparison dvdnav.c @ 217:eb503714e1c2 src
these variables are not needed any more
author | mroi |
---|---|
date | Wed, 31 Dec 2003 16:56:12 +0000 |
parents | 373f27da196b |
children | 065a2835ba90 |
comparison
equal
deleted
inserted
replaced
216:20d9e588f52c | 217:eb503714e1c2 |
---|---|
44 static dvdnav_status_t dvdnav_clear(dvdnav_t * this) { | 44 static dvdnav_status_t dvdnav_clear(dvdnav_t * this) { |
45 /* clear everything except file, vm, mutex, readahead */ | 45 /* clear everything except file, vm, mutex, readahead */ |
46 | 46 |
47 if (this->file) DVDCloseFile(this->file); | 47 if (this->file) DVDCloseFile(this->file); |
48 this->file = NULL; | 48 this->file = NULL; |
49 this->open_vtsN = -1; | |
50 this->open_domain = -1; | |
51 | 49 |
52 memset(&this->pci,0,sizeof(this->pci)); | 50 memset(&this->pci,0,sizeof(this->pci)); |
53 memset(&this->dsi,0,sizeof(this->dsi)); | 51 memset(&this->dsi,0,sizeof(this->dsi)); |
54 this->last_cmd_nav_lbn = SRI_END_OF_CELL; | 52 this->last_cmd_nav_lbn = SRI_END_OF_CELL; |
55 | 53 |
229 return result; | 227 return result; |
230 } | 228 } |
231 | 229 |
232 /* | 230 /* |
233 * Returns 1 if block contains NAV packet, 0 otherwise. | 231 * Returns 1 if block contains NAV packet, 0 otherwise. |
234 * Precesses said NAV packet if present. | 232 * Processes said NAV packet if present. |
235 * | 233 * |
236 * Most of the code in here is copied from xine's MPEG demuxer | 234 * Most of the code in here is copied from xine's MPEG demuxer |
237 * so any bugs which are found in that should be corrected here also. | 235 * so any bugs which are found in that should be corrected here also. |
238 */ | 236 */ |
239 static int32_t dvdnav_decode_packet(dvdnav_t *this, uint8_t *p, dsi_t *nav_dsi, pci_t *nav_pci) { | 237 static int32_t dvdnav_decode_packet(dvdnav_t *this, uint8_t *p, dsi_t *nav_dsi, pci_t *nav_pci) { |
520 if(this->file) { | 518 if(this->file) { |
521 DVDCloseFile(this->file); | 519 DVDCloseFile(this->file); |
522 this->file = NULL; | 520 this->file = NULL; |
523 } | 521 } |
524 | 522 |
525 vts_event->old_vtsN = this->open_vtsN; | 523 vts_event->old_vtsN = this->position_current.vts; |
526 vts_event->old_domain = this->open_domain; | 524 vts_event->old_domain = this->position_current.domain; |
527 | 525 |
528 /* Use the DOMAIN to find whether to open menu or title VOBs */ | 526 /* Use the DOMAIN to find whether to open menu or title VOBs */ |
529 switch(this->position_next.domain) { | 527 switch(this->position_next.domain) { |
530 case FP_DOMAIN: | 528 case FP_DOMAIN: |
531 case VMGM_DOMAIN: | 529 case VMGM_DOMAIN: |