Преглед на файлове

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) {
 			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);
 	}
 }