aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-31 13:29:44 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-31 13:29:44 +0100
commitfb348d651daeb6268b8cfcd9a929e233f9abb8d2 (patch)
tree33839e9b3b1342611a11779d819aba37b89d33aa
parentb6d1f32bfa70244e50c510bf62c81dc7f5127045 (diff)
Close gpu screen recorder output file after closing the process
-rw-r--r--src/Overlay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index 61fa9c5..268e264 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -470,8 +470,6 @@ namespace gsr {
notification_process = -1;
}
- close_gpu_screen_recorder_output();
-
if(gpu_screen_recorder_process > 0) {
kill(gpu_screen_recorder_process, SIGINT);
int status;
@@ -482,6 +480,8 @@ namespace gsr {
gpu_screen_recorder_process = -1;
}
+ close_gpu_screen_recorder_output();
+
free(xi_input_xev);
free(xi_output_xev);
if(xi_display)