瀏覽代碼

nv-filters: Silence initial load error for Blur

On initial run of the Blur filter, some parameters are not all set when
there is the first call to load the effect. This is actually not an
issue, so the log is now silenced at this time.

Signed-off-by: pkv <[email protected]>
(cherry picked from commit f6f5c7bb2510cb0ca8429a7f8d3c2a9f7b434501)
pkv 7 月之前
父節點
當前提交
3bebf2d67f
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      plugins/nv-filters/nvidia-videofx-filter.c

+ 1 - 3
plugins/nv-filters/nvidia-videofx-filter.c

@@ -144,10 +144,8 @@ static void nvvfx_filter_update(void *data, obs_data_t *settings)
 		if (filter->strength != strength) {
 		if (filter->strength != strength) {
 			filter->strength = strength;
 			filter->strength = strength;
 			vfxErr = NvVFX_SetF32(filter->handle_blur, NVVFX_STRENGTH, filter->strength);
 			vfxErr = NvVFX_SetF32(filter->handle_blur, NVVFX_STRENGTH, filter->strength);
+			vfxErr = NvVFX_Load(filter->handle_blur);
 		}
 		}
-		vfxErr = NvVFX_Load(filter->handle_blur);
-		if (NVCV_SUCCESS != vfxErr)
-			error("Error loading blur FX %i", vfxErr);
 	}
 	}
 }
 }