| 1128 | } |
| 1129 | |
| 1130 | void 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 | |
| 1145 | void ndi_source_activated(void *data) |
| 1146 | { |
nothing calls this directly
no test coverage detected