Skip to content

Commit 687a9cc

Browse files
authored
Merge pull request #533 from musteresel/improve-dummyreader-doc
Add a note about the buffering behavior of Timeline to DummyReader
2 parents 4ed575f + bec21b1 commit 687a9cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/DummyReader.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ namespace openshot
5353
* A dummy reader can be created with any framerate or samplerate. This is useful in unit
5454
* tests that need to test different framerates or samplerates.
5555
*
56+
* @note Timeline does buffering by requesting more frames than it
57+
* strictly needs. Thus if you use this DummyReader with a custom
58+
* cache in a Timeline, make sure it has enough
59+
* frames. Specifically you need some frames after the last frame
60+
* you plan to access through the Timeline.
61+
*
5662
* @code
5763
* // Create cache object to store fake Frame objects
5864
* CacheMemory cache;

0 commit comments

Comments
 (0)