From 79eb759a63d81d9a82234c37ea118501bb0ee265 Mon Sep 17 00:00:00 2001 From: SaiTatter Date: Thu, 6 Aug 2026 19:06:16 +0300 Subject: [PATCH] libobs: Fix color space query through non-video filters --- libobs/obs-source.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 2e99d9f6d080e6..524974aa2ed559 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -3010,6 +3010,12 @@ enum gs_color_space obs_source_get_color_space(obs_source_t *source, size_t coun return obs_source_get_color_space(source->filter_parent, count, preferred_spaces); } + /* a filter that produces no video must not answer for the chain below it */ + if (source->info.type == OBS_SOURCE_TYPE_FILTER && (source->info.output_flags & OBS_SOURCE_VIDEO) == 0) { + if (source->filter_target) + return obs_source_get_color_space(source->filter_target, count, preferred_spaces); + } + if (!source->context.data || !source->enabled) { if (source->filter_target) return obs_source_get_color_space(source->filter_target, count, preferred_spaces);