From 5c14babb80948bf67eb10066e8d5af74e1cc716f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 22 Feb 2025 18:35:08 +0100 Subject: Force nvenc codecs to work on opensuse --- src/egl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/egl.c') 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: -- cgit v1.2.3-70-g09d2