[DVDnav-discuss] r1132 - trunk/libdvdnav/src/navigation.c
rathann
subversion at mplayerhq.hu
Sun Aug 31 20:13:23 CEST 2008
Author: rathann
Date: Sun Aug 31 20:13:23 2008
New Revision: 1132
Log:
A variable assignment is missing a lock around it.
All other accesses are locked.
Patch by Erik Hovland %erik!hovland dot org*
Modified:
trunk/libdvdnav/src/navigation.c
Modified: trunk/libdvdnav/src/navigation.c
==============================================================================
--- trunk/libdvdnav/src/navigation.c (original)
+++ trunk/libdvdnav/src/navigation.c Sun Aug 31 20:13:23 2008
@@ -41,7 +41,9 @@
/* Navigation API calls */
dvdnav_status_t dvdnav_still_skip(dvdnav_t *this) {
+ pthread_mutex_lock(&this->vm_lock);
this->position_current.still = 0;
+ pthread_mutex_unlock(&this->vm_lock);
this->skip_still = 1;
this->sync_wait = 0;
this->sync_wait_skip = 1;
More information about the DVDnav-discuss
mailing list