changeset 387:4e28052eb201 src

A variable assignment is missing a lock around it. All other accesses are locked. Patch by Erik Hovland %erik!hovland dot org*
author rathann
date Sun, 31 Aug 2008 18:13:23 +0000
parents 579a3538d284
children 90ca650854e0
files navigation.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/navigation.c	Sat Aug 30 12:12:13 2008 +0000
+++ b/navigation.c	Sun Aug 31 18:13:23 2008 +0000
@@ -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;