Force nvenc codecs to work on opensuse

This commit is contained in:
dec05eba
2025-02-22 18:35:08 +01:00
parent ce4a8574f8
commit 5c14babb80
2 changed files with 11 additions and 1 deletions

View File

@@ -455,6 +455,12 @@ bool gsr_egl_load(gsr_egl *self, gsr_window *window, bool is_monitor_capture, bo
}
gsr_egl_disable_vsync(self);
if(self->gpu_info.vendor == GSR_GPU_VENDOR_NVIDIA) {
/* This fixes nvenc codecs unable to load on openSUSE tumbleweed because of a cuda error. Don't ask me why */
system("nvidia-smi");
}
return true;
fail: