X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fexport.cpp;h=d513cf0dacf5a6f6f74ff9cbe14ffde737cee615;hb=13c7a8f2386ca7fbe9f6e04d24bd584993dc76c6;hp=50fc950bbd2fa8ead59a365c28375b9be66ac278;hpb=c6fb9649d9f9c2e2cf3d1ac16c6c359630fe72bf;p=nageru diff --git a/futatabi/export.cpp b/futatabi/export.cpp index 50fc950..d513cf0 100644 --- a/futatabi/export.cpp +++ b/futatabi/export.cpp @@ -237,7 +237,7 @@ void export_interpolated_clip(const string &filename, const vector &clips) player.set_done_callback([&done_promise] { done_promise.set_value(); }); - player.set_progress_callback([¤t_value, &clips, total_length](const std::map &player_progress, double time_remaining) { + player.set_progress_callback([¤t_value, total_length](const std::map &player_progress, double time_remaining) { current_value = 1.0 - time_remaining / total_length; }); player.play(clips_with_id);