MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / RemoveEffect

Method RemoveEffect

src/Timeline.cpp:380–396  ·  view source on GitHub ↗

Remove an effect from the timeline

Source from the content-addressed store, hash-verified

378
379// Remove an effect from the timeline
380void 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
399void Timeline::RemoveClip(Clip* clip)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected