summaryrefslogtreecommitdiff
path: root/extra/libdvdnav/deadlock.patch
blob: f00433e67408a2d5f1b816e15fa5c59f5f0be17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/src/dvdnav.c	2009-11-08 16:58:25.000000000 +0300
+++ b/src/dvdnav.c	2009-11-08 16:58:52.000000000 +0300
@@ -180,12 +180,13 @@
     pthread_mutex_unlock(&this->vm_lock);
     return DVDNAV_STATUS_ERR;
   }
+  pthread_mutex_unlock(&this->vm_lock);
+
 #ifdef LOG_DEBUG
   fprintf(MSG_OUT, "libdvdnav: clearing dvdnav\n");
 #endif
   result = dvdnav_clear(this);
 
-  pthread_mutex_unlock(&this->vm_lock);
   return result;
 }