diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-05-29 00:43:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-05-29 00:43:59 +0200 |
commit | 41176177c6bb8b9826643310e9652a2443732fd8 (patch) | |
tree | 92c7396eb24067b744ca1ecb070952bf80b30e97 /src/main.cpp | |
parent | 561ceb1949136b6493099cd072d5fa59dc33be67 (diff) |
Update readme about flatpak
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |