Remove an effect from the timeline
| 378 | |
| 379 | // Remove an effect from the timeline |
| 380 | void Timeline::RemoveEffect(EffectBase* effect) |
| 381 | { |
| 382 | // Get lock (prevent getting frames while this happens) |
| 383 | const std::lock_guard<std::recursive_mutex> guard(getFrameMutex); |
| 384 | |
| 385 | effects.remove(effect); |
| 386 | |
| 387 | // Delete effect object (if timeline allocated it) |
| 388 | if (allocated_effects.count(effect)) { |
| 389 | allocated_effects.erase(effect); // erase before nulling the pointer |
| 390 | delete effect; |
| 391 | effect = NULL; |
| 392 | } |
| 393 | |
| 394 | // Sort effects |
| 395 | sort_effects(); |
| 396 | } |
| 397 | |
| 398 | // Remove an openshot::Clip to the timeline |
| 399 | void Timeline::RemoveClip(Clip* clip) |
nothing calls this directly
no outgoing calls
no test coverage detected