Fix crash on exit if a process is currently running

This commit is contained in:
Cameron Gutman committed 2023-05-15 19:11:51 -06:00
1 parent 9955890023
commit 32ca9d41de
3 files changed
+31 -1

No files matched your search

+5
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()) {