# HG changeset patch # User nicodvb # Date 1211488148 0 # Node ID b19a644148a92764b7a889bbfabd423cb31f4759 # Parent 23607807ff65bea2fcc8daff900bb46db83fdb18 in dvdnav_close() protect the actual call do DVDCloseFile() with a mutex; patch by Erik Hovland org diff -r 23607807ff65 -r b19a644148a9 dvdnav.c --- 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 */