Mercurial > libdvdnav.hg
comparison navigation.c @ 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 |
comparison
equal
deleted
inserted
replaced
386:579a3538d284 | 387:4e28052eb201 |
---|---|
39 #include "dvdnav_internal.h" | 39 #include "dvdnav_internal.h" |
40 | 40 |
41 /* Navigation API calls */ | 41 /* Navigation API calls */ |
42 | 42 |
43 dvdnav_status_t dvdnav_still_skip(dvdnav_t *this) { | 43 dvdnav_status_t dvdnav_still_skip(dvdnav_t *this) { |
44 pthread_mutex_lock(&this->vm_lock); | |
44 this->position_current.still = 0; | 45 this->position_current.still = 0; |
46 pthread_mutex_unlock(&this->vm_lock); | |
45 this->skip_still = 1; | 47 this->skip_still = 1; |
46 this->sync_wait = 0; | 48 this->sync_wait = 0; |
47 this->sync_wait_skip = 1; | 49 this->sync_wait_skip = 1; |
48 | 50 |
49 return DVDNAV_STATUS_OK; | 51 return DVDNAV_STATUS_OK; |