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

Method sort_effects

src/Timeline.cpp:857–867  ·  view source on GitHub ↗

Sort effects by position on the timeline

Source from the content-addressed store, hash-verified

855
856// Sort effects by position on the timeline
857void Timeline::sort_effects()
858{
859 // Get lock (prevent getting frames while this happens)
860 const std::lock_guard<std::recursive_mutex> guard(getFrameMutex);
861
862 // sort clips
863 effects.sort(CompareEffects());
864
865 // calculate max timeline duration
866 calculate_max_duration();
867}
868
869// Clear all clips from timeline
870void Timeline::Clear()

Callers

nothing calls this directly

Calls 1

CompareEffectsClass · 0.85

Tested by

no test coverage detected