# HG changeset patch # User erik # Date 1280532848 0 # Node ID 1be2ffbeeb238d54edb79b1729662ac98988e14f # Parent 0d2d897a6558ea442913440612b19e62b359b1b6 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! diff -r 0d2d897a6558 -r 1be2ffbeeb23 dvdnav.c --- a/dvdnav.c Tue Jun 01 10:02:38 2010 +0000 +++ b/dvdnav.c Fri Jul 30 23:34:08 2010 +0000 @@ -52,12 +52,12 @@ if (this->file) DVDCloseFile(this->file); this->file = NULL; + memset(&this->position_current,0,sizeof(this->position_current)); memset(&this->pci,0,sizeof(this->pci)); memset(&this->dsi,0,sizeof(this->dsi)); this->last_cmd_nav_lbn = SRI_END_OF_CELL; /* Set initial values of flags */ - this->position_current.still = 0; this->skip_still = 0; this->sync_wait = 0; this->sync_wait_skip = 0;