Skip to content
Open
11 changes: 5 additions & 6 deletions src/cli/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,17 @@ bool cli::run(
std::filesystem::create_directories(output_path->parent_path());
}

// set up render
auto render = rendering.queue_render(Render(input_path, video_info, output_path, config_path));
rendering::video_render_queue.add(
input_path, video_info, config_path, config_app::get_app_config(), output_path
);

if (blur.verbose) {
u::log(
"Queued '{}' for render, outputting to '{}'", render.get_video_name(), render.get_output_video_path()
);
u::log("Queued '{}' for render", input_path.stem());
}
}

// render videos
while (!blur.exiting && rendering.render_next_video())
while (!blur.exiting && rendering::video_render_queue.process_next())
;

u::log("Finished rendering");
Expand Down
4 changes: 2 additions & 2 deletions src/common/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ void Blur::cleanup() {

exiting = true;

// stop renders
rendering.stop_renders_and_wait();
// stop renders & wait for them to finish stopping
rendering::video_render_queue.stop_and_wait();

// remove temp dirs
DEBUG_LOG("removing temp path {}", temp_path);
Expand Down
Loading
Loading