From 332359d286c0ef874076c49dfea014abc4870584 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 20 Nov 2015 11:23:12 -0800 Subject: [PATCH] libobs: If filter size invalid, skip filter This shouldn't happen anymore because crop was fixed, but if a filter returns 0x0 size and is invalid it shouldn't stop the filter chain. Instead, it should just be skipped. --- libobs/obs-source.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 8ef333bdf..0ca393b06 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -2424,6 +2424,11 @@ void obs_source_process_filter_begin(obs_source_t *filter, return; } + if (!cx || !cy) { + obs_source_skip_video_filter(filter); + return; + } + if (!filter->filter_texrender) filter->filter_texrender = gs_texrender_create(format, GS_ZS_NONE); -- GitLab