libobs: Allow filter processing function to return false

(Note: this commit also modifies the obs-filters and test-input modules)

Changes the obs_source_process_filter_begin return type so that it
returns true/false to indicate that filter processing should or should
not continue (for example if the filter is bypassed or if there's some
other sort of issue that causes the filtering to fail)
This commit is contained in:
jp9000
2016-04-22 10:15:50 -07:00
parent 15bec2a4d2
commit ff99ba7818
10 changed files with 36 additions and 25 deletions

View File

@@ -210,8 +210,9 @@ static void mask_filter_render(void *data, gs_effect_t *effect)
vec2_div(&add_val, &add_val, &mask_size);
}
obs_source_process_filter_begin(filter->context, GS_RGBA,
OBS_ALLOW_DIRECT_RENDERING);
if (!obs_source_process_filter_begin(filter->context, GS_RGBA,
OBS_ALLOW_DIRECT_RENDERING))
return;
param = gs_effect_get_param_by_name(filter->effect, "target");
gs_effect_set_texture(param, filter->target);