X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fexport.cpp;fp=futatabi%2Fexport.cpp;h=d513cf0dacf5a6f6f74ff9cbe14ffde737cee615;hb=4b84fc30175a4dfb56a25ba0b2f9b88ab54cfe7d;hp=50fc950bbd2fa8ead59a365c28375b9be66ac278;hpb=43be1e6d8d769da60b694aa09c58e589bdbc39af;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);