From ed8998e403388b930987d5a80754ef97dbbdc154 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 3 Jan 2016 16:31:01 -0800 Subject: [PATCH] libobs: Do recursive height/width calls on non-filters Originally this was programmed to call the recursive height/width functions if the source type was an input with the intention of not calling it on filters, but instead of doing that just program it to do just that: only call the recursive height/width functions if it's not a 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 3986a12a7..b229773ce 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -1507,7 +1507,7 @@ uint32_t obs_source_get_width(obs_source_t *source) if (!data_valid(source, "obs_source_get_width")) return 0; - return (source->info.type == OBS_SOURCE_TYPE_INPUT) ? + return (source->info.type != OBS_SOURCE_TYPE_FILTER) ? get_recurse_width(source) : get_base_width(source); } @@ -1517,7 +1517,7 @@ uint32_t obs_source_get_height(obs_source_t *source) if (!data_valid(source, "obs_source_get_height")) return 0; - return (source->info.type == OBS_SOURCE_TYPE_INPUT) ? + return (source->info.type != OBS_SOURCE_TYPE_FILTER) ? get_recurse_height(source) : get_base_height(source); }