You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
- Timeline composition no longer mutates cached clip frames (fixes trails/ghosting).
- Clip updates via ApplyJsonDiff now also clear clip cache (not just timeline/reader ranges). - Added regressions for cache invalidation + no cached-frame mutation; kept paused preroll/cache-bar behavior intact.
This commit is contained in:
@@ -318,7 +318,7 @@ TEST_CASE("prefetchWindow: interrupt on userSeeked flag", "[VideoCacheThread]")
|
||||
CHECK(!wasFull);
|
||||
}
|
||||
|
||||
TEST_CASE("Seek preview: inside cache is cheap and does not invalidate", "[VideoCacheThread]") {
|
||||
TEST_CASE("Seek preview: evicts playhead frame to force fresh render", "[VideoCacheThread]") {
|
||||
TestableVideoCacheThread thread;
|
||||
CacheMemory cache(/*max_bytes=*/100000000);
|
||||
Timeline timeline(/*width=*/1280, /*height=*/720, /*fps=*/Fraction(24,1),
|
||||
@@ -335,8 +335,8 @@ TEST_CASE("Seek preview: inside cache is cheap and does not invalidate", "[Video
|
||||
CHECK(thread.isScrubbing());
|
||||
CHECK(thread.getUserSeekedFlag());
|
||||
CHECK(!thread.getPrerollOnNextFill());
|
||||
CHECK(cache.Contains(100));
|
||||
CHECK(cache.Count() >= 2);
|
||||
CHECK(!cache.Contains(100));
|
||||
CHECK(cache.Count() >= 1);
|
||||
}
|
||||
|
||||
TEST_CASE("Seek preview: outside cache marks uncached without preroll", "[VideoCacheThread]") {
|
||||
|
||||
Reference in New Issue
Block a user