| 1205 | } |
| 1206 | |
| 1207 | void 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 | |
| 1233 | uint32_t ndi_source_get_width(void *data) |
| 1234 | { |
nothing calls this directly
no test coverage detected