Skip to content

Commit

Permalink
Merge pull request #533 from musteresel/improve-dummyreader-doc
Browse files Browse the repository at this point in the history
Add a note about the buffering behavior of Timeline to DummyReader
  • Loading branch information
ferdnyc committed Jul 8, 2020
2 parents 4ed575f + bec21b1 commit 687a9cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/DummyReader.h
Expand Up @@ -53,6 +53,12 @@ namespace openshot
* A dummy reader can be created with any framerate or samplerate. This is useful in unit
* tests that need to test different framerates or samplerates.
*
* @note Timeline does buffering by requesting more frames than it
* strictly needs. Thus if you use this DummyReader with a custom
* cache in a Timeline, make sure it has enough
* frames. Specifically you need some frames after the last frame
* you plan to access through the Timeline.
*
* @code
* // Create cache object to store fake Frame objects
* CacheMemory cache;
Expand Down

0 comments on commit 687a9cc

Please sign in to comment.