From da2f9f732e4d5d7ba35c0d1a50ad1cda3b269b6f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 3 Jan 2016 16:27:39 -0800 Subject: [PATCH] libobs: Do not require get_width/height for filters/transitions --- libobs/obs-module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs-module.c b/libobs/obs-module.c index 6a44ebe4e..638ae697c 100644 --- a/libobs/obs-module.c +++ b/libobs/obs-module.c @@ -595,7 +595,8 @@ void obs_register_source_s(const struct obs_source_info *info, size_t size) CHECK_REQUIRED_VAL_(info, create, obs_register_source); CHECK_REQUIRED_VAL_(info, destroy, obs_register_source); - if (info->type == OBS_SOURCE_TYPE_INPUT && + if (info->type != OBS_SOURCE_TYPE_FILTER && + info->type != OBS_SOURCE_TYPE_TRANSITION && (info->output_flags & OBS_SOURCE_VIDEO) != 0 && (info->output_flags & OBS_SOURCE_ASYNC) == 0) { CHECK_REQUIRED_VAL_(info, get_width, obs_register_source);