| 343 | } |
| 344 | |
| 345 | void deactivate_source_output_video_texture(ndi_source_t *source) |
| 346 | { |
| 347 | // Per https://docs.obsproject.com/reference-sources#c.obs_source_output_video |
| 348 | // ``` |
| 349 | // void obs_source_output_video(obs_source_t *source, const struct obs_source_frame *frame) |
| 350 | // Outputs asynchronous video data. Set to NULL to deactivate the texture. |
| 351 | // ``` |
| 352 | if (source->width == 0 && source->height == 0) |
| 353 | return; |
| 354 | |
| 355 | source->width = 0; |
| 356 | source->height = 0; |
| 357 | obs_log(LOG_DEBUG, "'%s' deactivate_source_output_video_texture(…)", obs_source_get_name(source->obs_source)); |
| 358 | obs_source_output_video(source->obs_source, NULL); |
| 359 | } |
| 360 | |
| 361 | void process_empty_frame(ndi_source_t *source) |
| 362 | { |
no outgoing calls
no test coverage detected