aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-02-22 18:35:08 +0100
committerdec05eba <dec05eba@protonmail.com>2025-02-22 18:35:15 +0100
commit5c14babb80948bf67eb10066e8d5af74e1cc716f (patch)
tree4104bb2da6034170fe907fc94e940cc79f453222 /src
parentce4a8574f8c8f16beb0700d4d4e747c2cd848583 (diff)
Force nvenc codecs to work on opensuse
Diffstat (limited to 'src')
-rw-r--r--src/egl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl.c b/src/egl.c
index be5a44d..0608526 100644
--- a/src/egl.c
+++ b/src/egl.c
@@ -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: