changeset 339:d0bfcfa565b0 src

in dvdnav_get_next_cache_block() release the mutex if vm_start() failed ; patch by Erik Hovland - erik hovland org
author nicodvb
date Sat, 19 Apr 2008 10:11:36 +0000
parents 0dc09442ff9c
children eea1e72ea1dd
files dvdnav.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dvdnav.c	Sat Apr 19 10:07:47 2008 +0000
+++ b/dvdnav.c	Sat Apr 19 10:11:36 2008 +0000
@@ -416,6 +416,7 @@
     /* Start the VM */
     if (!vm_start(this->vm)) {
       printerr("Encrypted or faulty DVD");
+      pthread_mutex_unlock(&this->vm_lock);
       return DVDNAV_STATUS_ERR;
     }
     this->started = 1;