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 - trying to determine crash on build server
This commit is contained in:
@@ -40,6 +40,7 @@ CacheDisk::CacheDisk(string cache_path, string format, float quality, float scal
|
||||
image_format = format;
|
||||
image_quality = quality;
|
||||
image_scale = scale;
|
||||
max_bytes = 0;
|
||||
|
||||
// Init path directory
|
||||
InitPath(cache_path);
|
||||
|
||||
@@ -36,6 +36,7 @@ CacheMemory::CacheMemory() : CacheBase(0) {
|
||||
cache_type = "CacheMemory";
|
||||
range_version = 0;
|
||||
needs_range_processing = false;
|
||||
max_bytes = 0;
|
||||
};
|
||||
|
||||
// Constructor that sets the max bytes to cache
|
||||
@@ -293,6 +294,7 @@ void CacheMemory::Clear()
|
||||
// Count the frames in the queue
|
||||
long int CacheMemory::Count()
|
||||
{
|
||||
cout << "CacheMemory::Count" << endl;
|
||||
// Create a scoped lock, to protect the cache from multiple threads
|
||||
const GenericScopedLock<CriticalSection> lock(*cacheCriticalSection);
|
||||
|
||||
|
||||
@@ -47,8 +47,11 @@ TEST(Cache_Default_Constructor)
|
||||
c.Add(f);
|
||||
}
|
||||
|
||||
cout << "Cache_Default_Constructor A" << endl;
|
||||
CHECK_EQUAL(50, c.Count()); // Cache should have all frames, with no limit
|
||||
cout << "Cache_Default_Constructor B" << endl;
|
||||
CHECK_EQUAL(0, c.GetMaxBytes()); // Max frames should default to 0
|
||||
cout << "Cache_Default_Constructor C" << endl;
|
||||
}
|
||||
|
||||
TEST(Cache_Max_Bytes_Constructor)
|
||||
|
||||
Reference in New Issue
Block a user