X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fmutex.C;h=6bbf279e78396f033460a1a8cfd20a3f150e3561;hb=0d49253b107e67067b6143958fee3f8e4c0e0b6c;hp=a4a6e21f99f605c1e30fe7a7ffb6092cad5ab40b;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/mutex.C b/cinelerra-5.1/guicast/mutex.C index a4a6e21f..6bbf279e 100644 --- a/cinelerra-5.1/guicast/mutex.C +++ b/cinelerra-5.1/guicast/mutex.C @@ -96,6 +96,10 @@ int Mutex::lock(const char *location) int Mutex::unlock() { + if( count <= 0 ) { + printf("Mutex::unlock not locked: %s\n", title); + return 0; + } // Remove from recursive status if(recursive) {