unsetenv instead of setenv empty string

This commit is contained in:
dec05eba
2024-02-13 23:54:01 +01:00
parent 197af19609
commit 196cd157b8

View File

@@ -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 // 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. // 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. // 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) if(argc <= 1)
usage_full(); usage_full();