Просмотр исходного кода

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 10 месяцев назад
Родитель
Сommit
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) {
 			filter->strength = 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);
 	}
 }