You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge pull request #610 from OpenShot/revert-caching-fix
Revert cache-busting-on-seek Experiment
This commit is contained in:
@@ -725,15 +725,6 @@ std::shared_ptr<Frame> Timeline::GetFrame(int64_t requested_frame)
|
||||
return frame;
|
||||
}
|
||||
|
||||
// Check if previous frame was cached? (if not, assume we are seeking somewhere else on the Timeline, and need
|
||||
// to clear all cache (for continuity sake). For example, jumping back to a previous spot can cause issues with audio
|
||||
// data where the new jump location doesn't match up with the previously cached audio data.
|
||||
std::shared_ptr<Frame> previous_frame = final_cache->GetFrame(requested_frame - 1);
|
||||
if (!previous_frame) {
|
||||
// Seeking to new place on timeline (destroy cache)
|
||||
ClearAllCache();
|
||||
}
|
||||
|
||||
// Minimum number of frames to process (for performance reasons)
|
||||
int minimum_frames = OPEN_MP_NUM_PROCESSORS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user