Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/moviecache.c
| Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Lines | static void do_moviecache_put(MovieCache *cache, void *userkey, ImBuf *ibuf, bool need_lock) | ||||
| MEM_CacheLimiter_ref(item->c_handle); | MEM_CacheLimiter_ref(item->c_handle); | ||||
| MEM_CacheLimiter_enforce_limits(limitor); | MEM_CacheLimiter_enforce_limits(limitor); | ||||
| MEM_CacheLimiter_unref(item->c_handle); | MEM_CacheLimiter_unref(item->c_handle); | ||||
| if (need_lock) | if (need_lock) | ||||
| BLI_mutex_unlock(&limitor_lock); | BLI_mutex_unlock(&limitor_lock); | ||||
| /* cache limiter can't remove unused keys which points to destoryed values */ | /* cache limiter can't remove unused keys which points to destroyed values */ | ||||
| check_unused_keys(cache); | check_unused_keys(cache); | ||||
| if (cache->points) { | if (cache->points) { | ||||
| MEM_freeN(cache->points); | MEM_freeN(cache->points); | ||||
| cache->points = NULL; | cache->points = NULL; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines | |||||