You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Made Keyframe objects thread safe, by generating the values as Points are added, and the Timeline's Open and Close logic was made thread safe, so a reader is not closed while it's still being accessed on another thread. Also removed some unneeded code and comments.
This commit is contained in:
@@ -62,6 +62,10 @@ void Keyframe::AddPoint(Point p) {
|
||||
|
||||
// Set Handles (used for smooth curves).
|
||||
SetHandles(p);
|
||||
|
||||
// Check if it needs to be processed
|
||||
if (needs_update)
|
||||
Process();
|
||||
}
|
||||
|
||||
// Add a new point on the key-frame, with some defaults set (BEZIER, AUTO Handles, etc...)
|
||||
|
||||
Reference in New Issue
Block a user