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

Function ndi_source_destroy

src/ndi-source.cpp:1207–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205}
1206
1207void ndi_source_destroy(void *data)
1208{
1209 auto s = (ndi_source_t *)data;
1210 auto obs_source_name = obs_source_get_name(s->obs_source);
1211 obs_log(LOG_DEBUG, "'%s' +ndi_source_destroy(…)", obs_source_name);
1212
1213 auto sh = obs_source_get_signal_handler(s->obs_source);
1214 signal_handler_disconnect(sh, "rename", on_ndi_source_renamed, s);
1215
1216 ndi_source_thread_stop(s);
1217
1218 if (s->config.ndi_receiver_name) {
1219 bfree(s->config.ndi_receiver_name);
1220 s->config.ndi_receiver_name = nullptr;
1221 }
1222
1223 if (s->config.ndi_source_name) {
1224 bfree(s->config.ndi_source_name);
1225 s->config.ndi_source_name = nullptr;
1226 }
1227
1228 bfree(s);
1229
1230 obs_log(LOG_DEBUG, "'%s' -ndi_source_destroy(…)", obs_source_name);
1231}
1232
1233uint32_t ndi_source_get_width(void *data)
1234{

Callers

nothing calls this directly

Calls 1

ndi_source_thread_stopFunction · 0.85

Tested by

no test coverage detected