Close gpu screen recorder output file after closing the process

This commit is contained in:
dec05eba
2024-12-31 13:29:44 +01:00
parent b6d1f32bfa
commit fb348d651d

View File

@@ -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)