[DVDnav-discuss] r1010 - trunk/libdvdnav/src/dvdnav.c

nicodvb subversion at mplayerhq.hu
Sat Apr 19 12:11:36 CEST 2008


Author: nicodvb
Date: Sat Apr 19 12:11:36 2008
New Revision: 1010

Log:
in dvdnav_get_next_cache_block() release the mutex if vm_start() failed ; patch by Erik Hovland  - erik hovland org

Modified:
   trunk/libdvdnav/src/dvdnav.c

Modified: trunk/libdvdnav/src/dvdnav.c
==============================================================================
--- trunk/libdvdnav/src/dvdnav.c	(original)
+++ trunk/libdvdnav/src/dvdnav.c	Sat Apr 19 12:11:36 2008
@@ -416,6 +416,7 @@ dvdnav_status_t dvdnav_get_next_cache_bl
     /* 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;



More information about the DVDnav-discuss mailing list