From 41176177c6bb8b9826643310e9652a2443732fd8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 May 2023 00:43:59 +0200 Subject: Update readme about flatpak --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 48a4891..f24a3f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2032,5 +2032,11 @@ int main(int argc, char **argv) { } free(empty_audio); + // We do an _exit here because cuda uses at_exit to do _something_ that causes the program to freeze, + // but only on some nvidia driver versions on some gpus (RTX?), and _exit exits the program without calling + // the at_exit registered functions. + // Cuda (cuvid library in this case) seems to be waiting for a thread that never finishes execution. + // Maybe this happens because we dont clean up all ffmpeg resources? + // TODO: Investigate this. _exit(should_stop_error ? 3 : 0); } -- cgit v1.2.3