Mercurial > libdvdnav.hg
changeset 365:b19a644148a9 src
in dvdnav_close() protect the actual call do DVDCloseFile() with a mutex; patch by Erik Hovland org
author | nicodvb |
---|---|
date | Thu, 22 May 2008 20:29:08 +0000 |
parents | 23607807ff65 |
children | 5b8539cacebf |
files | dvdnav.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dvdnav.c Sun May 11 20:35:22 2008 +0000 +++ b/dvdnav.c Thu May 22 20:29:08 2008 +0000 @@ -137,11 +137,13 @@ #endif if (this->file) { + pthread_mutex_lock(&this->vm_lock); DVDCloseFile(this->file); #ifdef LOG_DEBUG fprintf(MSG_OUT, "libdvdnav: close:file closing\n"); #endif this->file = NULL; + pthread_mutex_unlock(&this->vm_lock); } /* Free the VM */