fix mistake of not checking both parts in
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cache.C
index a93f1e1b994f7d800ad08d61e8e3deeff11f74c7..9186f1f090b4bd52c0f3f93faf7fd3405102f2d5 100644 (file)
@@ -118,9 +118,13 @@ File* CICache::check_out(Asset *asset, EDL *edl, int block)
 // cache deleted during checkout, destroy this
        if( users == 1 ) {
                remove_user();
+               total_lock->unlock();
                return 0;
        }
 
+       //printf("users: %i \n", users );
+       EDL *parent = edl->parent_edl;
+       if(parent)
        remove_user();
        total_lock->unlock();
 //printf("check out %p %lx %s\n", current, tid, asset->path);