nv-filters: Fix for size changes with video fx

The && should be a || when sizes are changed.

Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
pkv
2025-08-09 10:20:52 +02:00
committed by Ryan Foster
parent 3baf0456ba
commit f3ebb86396

View File

@@ -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;