comparison dvdnav.c @ 406:1be2ffbeeb23 src

Clear all of position_current In dvdnav_clear the only thing cleared of position_current is one member. Instead clear the whole thing. This is derived from a patch submitted by John Stebbins. Thanks!
author erik
date Fri, 30 Jul 2010 23:34:08 +0000
parents 390fbf2a9602
children 51be513f1a1d
comparison
equal deleted inserted replaced
405:0d2d897a6558 406:1be2ffbeeb23
50 50
51 pthread_mutex_lock(&this->vm_lock); 51 pthread_mutex_lock(&this->vm_lock);
52 if (this->file) DVDCloseFile(this->file); 52 if (this->file) DVDCloseFile(this->file);
53 this->file = NULL; 53 this->file = NULL;
54 54
55 memset(&this->position_current,0,sizeof(this->position_current));
55 memset(&this->pci,0,sizeof(this->pci)); 56 memset(&this->pci,0,sizeof(this->pci));
56 memset(&this->dsi,0,sizeof(this->dsi)); 57 memset(&this->dsi,0,sizeof(this->dsi));
57 this->last_cmd_nav_lbn = SRI_END_OF_CELL; 58 this->last_cmd_nav_lbn = SRI_END_OF_CELL;
58 59
59 /* Set initial values of flags */ 60 /* Set initial values of flags */
60 this->position_current.still = 0;
61 this->skip_still = 0; 61 this->skip_still = 0;
62 this->sync_wait = 0; 62 this->sync_wait = 0;
63 this->sync_wait_skip = 0; 63 this->sync_wait_skip = 0;
64 this->spu_clut_changed = 0; 64 this->spu_clut_changed = 0;
65 this->started = 0; 65 this->started = 0;