From 18afe82304ad7b739a773bae6c7bbbb8cce0cdb8 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 19 Mar 2015 10:23:44 -0700 Subject: [PATCH] libobs: Skip filter if internal data not present If the filter's binary was recently removed, the data will be invalid, so make sure that it properly handles that situation by skipping the filter. --- libobs/obs-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 55cea370d..ba8daa946 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -1173,9 +1173,9 @@ static bool ready_async_frame(obs_source_t *source, uint64_t sys_time); void obs_source_video_render(obs_source_t *source) { - if (!source_valid(source)) return; + if (!source) return; - if (!source->enabled) { + if (!source->context.data || !source->enabled) { if (source->filter_parent) obs_source_skip_video_filter(source); return; -- GitLab