Sort effects by position on the timeline
| 855 | |
| 856 | // Sort effects by position on the timeline |
| 857 | void 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 |
| 870 | void Timeline::Clear() |
nothing calls this directly
no test coverage detected