MCPcopy Create free account
hub / github.com/DistroAV/DistroAV / ndi_source_shown

Function ndi_source_shown

src/ndi-source.cpp:1117–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117void ndi_source_shown(void *data)
1118{
1119 // NOTE: This does NOT fire when showing a source in Preview that is also in Program.
1120 auto s = (ndi_source_t *)data;
1121 auto obs_source_name = obs_source_get_name(s->obs_source);
1122 obs_log(LOG_DEBUG, "'%s' ndi_source_shown(…)", obs_source_name);
1123 s->config.tally.on_preview = tally_on_preview(s->obs_source);
1124 if (!s->running) {
1125 obs_log(LOG_DEBUG, "'%s' ndi_source_shown: Requesting Source Thread Start.", obs_source_name);
1126 ndi_source_thread_start(s);
1127 }
1128}
1129
1130void ndi_source_hidden(void *data)
1131{

Callers

nothing calls this directly

Calls 2

tally_on_previewFunction · 0.85
ndi_source_thread_startFunction · 0.85

Tested by

no test coverage detected