From 196cd157b8cfd62b498d03ad01e7463c67322b29 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 13 Feb 2024 23:54:01 +0100 Subject: unsetenv instead of setenv empty string --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f04b1af..c0231f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1590,7 +1590,7 @@ int main(int argc, char **argv) { // Some people set this to nvidia (for nvdec) or vdpau (for nvidia vdpau), which breaks gpu screen recorder since // nvidia doesn't support vaapi and nvidia-vaapi-driver doesn't support encoding yet. // Let vaapi find the match vaapi driver instead of forcing a specific one. - setenv("LIBVA_DRIVER_NAME", "", true); + unsetenv("LIBVA_DRIVER_NAME"); if(argc <= 1) usage_full(); -- cgit v1.2.3