Fix crash on exit if a process is currently running

This commit is contained in:
Cameron Gutman
2023-05-14 21:05:15 -05:00
parent 9955890023
commit 32ca9d41de
3 changed files with 31 additions and 1 deletions

View File

@@ -594,6 +594,11 @@ main(int argc, char *argv[]) {
BOOST_LOG(error) << "Platform failed to initialize"sv;
}
auto proc_deinit_guard = proc::init();
if (!proc_deinit_guard) {
BOOST_LOG(error) << "Proc failed to initialize"sv;
}
reed_solomon_init();
auto input_deinit_guard = input::init();
if (video::probe_encoders()) {