libobs: Send activate and show signals to filters

This commit is contained in:
VodBox
2019-06-13 12:30:07 +12:00
committed by jp9000
parent 647e7e24a1
commit e8c1ec4035

View File

@@ -1088,6 +1088,18 @@ void obs_source_video_tick(obs_source_t *source, float seconds)
hide_source(source);
}
if (source->filters.num) {
for (size_t i = source->filters.num; i > 0; i--) {
obs_source_t *filter =
source->filters.array[i - 1];
if (now_showing) {
show_source(filter);
} else {
hide_source(filter);
}
}
}
source->showing = now_showing;
}
@@ -1100,6 +1112,18 @@ void obs_source_video_tick(obs_source_t *source, float seconds)
deactivate_source(source);
}
if (source->filters.num) {
for (size_t i = source->filters.num; i > 0; i--) {
obs_source_t *filter =
source->filters.array[i - 1];
if (now_active) {
activate_source(filter);
} else {
deactivate_source(filter);
}
}
}
source->active = now_active;
}