diff --git a/src/common/blur.cpp b/src/common/blur.cpp index 6bbb55e..317b7e2 100644 --- a/src/common/blur.cpp +++ b/src/common/blur.cpp @@ -29,6 +29,7 @@ bool c_blur::initialise(bool _verbose, bool _using_preview) { using_preview = _using_preview; std::atexit([] { + rendering.stop_rendering(); blur.cleanup(); }); diff --git a/src/common/rendering.cpp b/src/common/rendering.cpp index a077817..b56c8ef 100644 --- a/src/common/rendering.cpp +++ b/src/common/rendering.cpp @@ -362,6 +362,7 @@ void c_render::render() { } void c_rendering::stop_rendering() { + // stop vspipe TerminateProcess(vspipe_pi.hProcess, 0); // send wm_close to ffmpeg so that it can gracefully stop diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 188421d..16283bd 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -133,5 +133,4 @@ void gui::run() { glfwTerminate(); open = false; - rendering.stop_rendering(); }