Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Mar 18, 2024
2 parents adb8506 + 1aefa94 commit ffef8b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tlTimeline/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,15 @@ namespace tl
const auto t0 = std::chrono::steady_clock::now();

// Get mutex protected values.
std::vector<std::shared_ptr<Timeline> > compare;
bool clearRequests = false;
bool clearCache = false;
{
std::unique_lock<std::mutex> lock(p.mutex.mutex);
p.thread.playback = p.mutex.playback;
p.thread.currentTime = p.mutex.currentTime;
p.thread.inOutRange = p.mutex.inOutRange;
p.thread.compare = p.mutex.compare;
compare = p.mutex.compare;
p.thread.compareTime = p.mutex.compareTime;
p.thread.ioOptions = p.mutex.ioOptions;
p.thread.videoLayer = p.mutex.videoLayer;
Expand All @@ -224,6 +225,7 @@ namespace tl
{
p.clearRequests();
}
p.thread.compare = compare;

// Clear the cache.
if (clearCache)
Expand Down

0 comments on commit ffef8b8

Please sign in to comment.