Mercurial > libdvdnav.hg
changeset 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 | 0d2d897a6558 |
children | 51be513f1a1d |
files | dvdnav.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;