From f3ebb86396caec4d89f1dc4dbb4599e09825309e Mon Sep 17 00:00:00 2001 From: pkv Date: Sat, 9 Aug 2025 10:20:52 +0200 Subject: [PATCH] nv-filters: Fix for size changes with video fx The && should be a || when sizes are changed. Signed-off-by: pkv --- plugins/nv-filters/nvidia-videofx-filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nv-filters/nvidia-videofx-filter.c b/plugins/nv-filters/nvidia-videofx-filter.c index 7ea8ac3a8..58e0c6aba 100644 --- a/plugins/nv-filters/nvidia-videofx-filter.c +++ b/plugins/nv-filters/nvidia-videofx-filter.c @@ -757,7 +757,7 @@ static void nvvfx_filter_tick(void *data, float t) const uint32_t cy = obs_source_get_base_height(target); // initially the sizes are 0 - if (!cx && !cy) { + if (!cx || !cy) { filter->target_valid = false; return; } @@ -771,7 +771,7 @@ static void nvvfx_filter_tick(void *data, float t) } } - if (cx != filter->width && cy != filter->height) { + if (cx != filter->width || cy != filter->height) { filter->images_allocated = false; filter->width = cx; filter->height = cy;