Sort clips by position on the timeline
| 837 | |
| 838 | // Sort clips by position on the timeline |
| 839 | void Timeline::sort_clips() |
| 840 | { |
| 841 | // Get lock (prevent getting frames while this happens) |
| 842 | const std::lock_guard<std::recursive_mutex> guard(getFrameMutex); |
| 843 | |
| 844 | // Debug output |
| 845 | ZmqLogger::Instance()->AppendDebugMethod( |
| 846 | "Timeline::SortClips", |
| 847 | "clips.size()", clips.size()); |
| 848 | |
| 849 | // sort clips |
| 850 | clips.sort(CompareClips()); |
| 851 | |
| 852 | // calculate max timeline duration |
| 853 | calculate_max_duration(); |
| 854 | } |
| 855 | |
| 856 | // Sort effects by position on the timeline |
| 857 | void Timeline::sort_effects() |
nothing calls this directly
no test coverage detected