| 362 | InterruptingCache(int64_t maxb, TestableVideoCacheThread* t) |
| 363 | : CacheMemory(maxb), tcb(t) {} |
| 364 | void Add(std::shared_ptr<openshot::Frame> frame) override { |
| 365 | int64_t idx = frame->number; // use public member 'number' |
| 366 | CacheMemory::Add(frame); |
| 367 | if (idx == 23) { |
| 368 | tcb->forceUserSeekFlag(); |
| 369 | } |
| 370 | } |
| 371 | } interruptingCache(/*max_bytes=*/100000000, &thread); |
| 372 | |
| 373 | bool wasFull = thread.prefetchWindow(&interruptingCache, |
no test coverage detected