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

Function ndi_source_hidden

src/ndi-source.cpp:1130–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130void ndi_source_hidden(void *data)
1131{
1132 // NOTE: This does NOT fire when hiding a source in Preview that is also in Program.
1133 auto s = (ndi_source_t *)data;
1134 auto obs_source_name = obs_source_get_name(s->obs_source);
1135 obs_log(LOG_DEBUG, "'%s' ndi_source_hidden(…)", obs_source_name);
1136 s->config.tally.on_preview = false;
1137 if (s->running && s->config.behavior != PROP_BEHAVIOR_KEEP_ACTIVE) {
1138 obs_log(LOG_DEBUG, "'%s' ndi_source_hidden: Requesting Source Thread Stop.", obs_source_name);
1139 // Stopping the thread may result in `on_preview=false` not getting sent,
1140 // but the thread's `ndiLib->recv_destroy` results in an implicit tally off.
1141 ndi_source_thread_stop(s);
1142 }
1143}
1144
1145void ndi_source_activated(void *data)
1146{

Callers

nothing calls this directly

Calls 1

ndi_source_thread_stopFunction · 0.85

Tested by

no test coverage detected