comparison dvdnav.c @ 191:dbea22936623 src

when a command has been issued to leave a menu, filter all further commands for this menu
author mroi
date Tue, 06 May 2003 14:11:44 +0000
parents 21bf7491156c
children b80dff4bef76
comparison
equal deleted inserted replaced
190:c575bd95911d 191:dbea22936623
49 this->open_vtsN = -1; 49 this->open_vtsN = -1;
50 this->open_domain = -1; 50 this->open_domain = -1;
51 51
52 memset(&this->pci,0,sizeof(this->pci)); 52 memset(&this->pci,0,sizeof(this->pci));
53 memset(&this->dsi,0,sizeof(this->dsi)); 53 memset(&this->dsi,0,sizeof(this->dsi));
54 this->last_cmd_nav_lbn = 0;
54 55
55 /* Set initial values of flags */ 56 /* Set initial values of flags */
56 this->position_current.still = 0; 57 this->position_current.still = 0;
57 this->skip_still = 0; 58 this->skip_still = 0;
58 this->sync_wait = 0; 59 this->sync_wait = 0;
777 /* Give the cache a hint about the size of next VOBU. 778 /* Give the cache a hint about the size of next VOBU.
778 * This improves pre-caching, because the VOBU will almost certainly be read entirely. 779 * This improves pre-caching, because the VOBU will almost certainly be read entirely.
779 */ 780 */
780 dvdnav_pre_cache_blocks(this->cache, this->vobu.vobu_start+1, this->vobu.vobu_length+1); 781 dvdnav_pre_cache_blocks(this->cache, this->vobu.vobu_start+1, this->vobu.vobu_length+1);
781 782
783 /* release NAV menu filter, when we reach the same NAV packet again */
784 if (this->last_cmd_nav_lbn == this->pci.pci_gi.nv_pck_lbn)
785 this->last_cmd_nav_lbn = 0;
786
782 /* Successfully got a NAV packet */ 787 /* Successfully got a NAV packet */
783 (*event) = DVDNAV_NAV_PACKET; 788 (*event) = DVDNAV_NAV_PACKET;
784 #ifdef LOG_DEBUG 789 #ifdef LOG_DEBUG
785 fprintf(MSG_OUT, "libdvdnav: NAV_PACKET\n"); 790 fprintf(MSG_OUT, "libdvdnav: NAV_PACKET\n");
786 #endif 791 #endif