You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Even more logging +2 - trying to determine crash on build server
This commit is contained in:
@@ -310,12 +310,14 @@ long int CacheMemory::Count()
|
||||
void CacheMemory::CleanUp()
|
||||
{
|
||||
cout << "CacheMemory::CleanUp" << endl;
|
||||
// Create a scoped lock, to protect the cache from multiple threads
|
||||
const GenericScopedLock<CriticalSection> lock(*cacheCriticalSection);
|
||||
cout << " -- max_bytes: " << max_bytes << endl;
|
||||
|
||||
// Do we auto clean up?
|
||||
if (max_bytes > 0)
|
||||
{
|
||||
// Create a scoped lock, to protect the cache from multiple threads
|
||||
const GenericScopedLock<CriticalSection> lock(*cacheCriticalSection);
|
||||
|
||||
while (GetBytes() > max_bytes && frame_numbers.size() > 20)
|
||||
{
|
||||
// Get the oldest frame number.
|
||||
|
||||
Reference in New Issue
Block a user