Skip to content

Commit

Permalink
Do not use disabled filters as target
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Oct 28, 2024
1 parent fbb65ea commit ed2d9b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source-profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,9 @@ void PerfTreeItem::update()
active = m_parentItem->active && obs_source_enabled(source);
if ((obs_source_get_output_flags(source) & OBS_SOURCE_ASYNC_VIDEO) != OBS_SOURCE_ASYNC_VIDEO) {
obs_source_t *target = obs_filter_get_target(source);
while (target && !obs_source_enabled(target)) {
target = obs_filter_get_target(target);
}
if (target) {
profiler_result_t diff;
source_profiler_fill_result(target, &diff);
Expand Down

0 comments on commit ed2d9b6

Please sign in to comment.