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

Function deactivate_source_output_video_texture

src/ndi-source.cpp:345–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void 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
361void process_empty_frame(ndi_source_t *source)
362{

Callers 2

process_empty_frameFunction · 0.85
ndi-source.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected