From 91bfb53ed5acaf31025c00fc3a8abe223f9bca5e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 9 Jul 2015 01:58:12 -0700 Subject: [PATCH] libobs: Fix audio filters killing video on source When an audio filter is applied to a video source that also has accompanying audio, it would cause the video from the source to stop rendering. The original code this was from was to prevent audio-only sources from rendering video, but I neglected to make sure that this would not apply to filters, and thus when an audio filter is on a source with video, the code would kill the video. --- libobs/obs-source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 47c5e64de..860de15bc 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -1399,7 +1399,8 @@ void obs_source_video_render(obs_source_t *source) { if (!source) return; - if ((source->info.output_flags & OBS_SOURCE_VIDEO) == 0) + if (source->info.type != OBS_SOURCE_TYPE_FILTER && + (source->info.output_flags & OBS_SOURCE_VIDEO) == 0) return; if (!source->context.data || !source->enabled) { -- GitLab