- player.set_next_clip_callback([&clip_idx, &clips]() -> pair<Clip, int> {
- if (++clip_idx >= clips.size()) {
- return make_pair(Clip(), -1);
- } else {
- return make_pair(clips[clip_idx], clip_idx);
- }
- });
- player.set_progress_callback([¤t_value, &clips, total_length] (const std::map<size_t, double> &player_progress) {
+ player.set_progress_callback([¤t_value, &clips, total_length](const std::map<size_t, double> &player_progress) {