- player.set_progress_callback([¤t_value, &clips, total_length](const std::map<size_t, double> &player_progress, double time_remaining) {
- current_value = 1.0 - time_remaining / total_length;
+ player.set_progress_callback([¤t_value, total_length](const std::map<uint64_t, double> &player_progress, TimeRemaining time_remaining) {
+ current_value = 1.0 - time_remaining.t / total_length.t; // Nothing to do about the infinite clips.