# HG changeset patch # User nicodvb # Date 1208599896 0 # Node ID d0bfcfa565b0557f5862353059a84effbf89933c # Parent 0dc09442ff9c073ac6da3359c0e6ee46b9a98faa in dvdnav_get_next_cache_block() release the mutex if vm_start() failed ; patch by Erik Hovland - erik hovland org diff -r 0dc09442ff9c -r d0bfcfa565b0 dvdnav.c --- 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;