[DVDnav-discuss] r1205 - trunk/libdvdnav/src/dvdnav.c

erik subversion at mplayerhq.hu
Sat Jul 31 01:34:09 CEST 2010


Author: erik
Date: Sat Jul 31 01:34:08 2010
New Revision: 1205

Log:
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!

Modified:
   trunk/libdvdnav/src/dvdnav.c

Modified: trunk/libdvdnav/src/dvdnav.c
==============================================================================
--- trunk/libdvdnav/src/dvdnav.c	Tue Jul 20 11:30:13 2010	(r1204)
+++ trunk/libdvdnav/src/dvdnav.c	Sat Jul 31 01:34:08 2010	(r1205)
@@ -52,12 +52,12 @@ static dvdnav_status_t dvdnav_clear(dvdn
   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;


More information about the DVDnav-discuss mailing list