| 210 | } |
| 211 | |
| 212 | Timeline::~Timeline() { |
| 213 | if (is_open) { |
| 214 | // Auto Close if not already |
| 215 | Close(); |
| 216 | } |
| 217 | |
| 218 | // Remove all clips, effects, and frame mappers |
| 219 | Clear(); |
| 220 | |
| 221 | // Destroy previous cache (if managed by timeline) |
| 222 | if (managed_cache && final_cache) { |
| 223 | delete final_cache; |
| 224 | final_cache = NULL; |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // Add to the tracked_objects map a pointer to a tracked object (TrackedObjectBBox) |
| 229 | void Timeline::AddTrackedObject(std::shared_ptr<openshot::TrackedObjectBase> trackedObject){ |
nothing calls this directly
no outgoing calls
no test coverage detected