diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-02-13 23:54:01 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-02-13 23:54:01 +0100 |
commit | 196cd157b8cfd62b498d03ad01e7463c67322b29 (patch) | |
tree | a8e3b40930739928f83e32d278ecb408465c0372 | |
parent | 197af1960994e8be8b05a4e6804cd6607ff3514c (diff) |
unsetenv instead of setenv empty string
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |