void obs_encoder_update(obs_encoder_t encoder, obs_data_t settings) { if (!encoder) return; obs_data_apply(encoder->settings, settings); encoder->info.update(encoder->data, encoder->settings); }
void obs_output_update(obs_output_t output, obs_data_t settings) { if (!output) return; obs_data_apply(output->settings, settings); if (output->info.update) output->info.update(output->data, output->settings); }
void obs_output_update(obs_output_t *output, obs_data_t *settings) { if (!output) return; obs_data_apply(output->context.settings, settings); if (output->info.update) output->info.update(output->context.data, output->context.settings); }
void obs_encoder_update(obs_encoder_t *encoder, obs_data_t *settings) { if (!encoder) return; obs_data_apply(encoder->context.settings, settings); if (encoder->info.update && encoder->context.data) encoder->info.update(encoder->context.data, encoder->context.settings); }
void obs_service_update(obs_service_t *service, obs_data_t *settings) { if (!service) return; obs_data_apply(service->context.settings, settings); if (service->info.update) service->info.update(service->context.data, service->context.settings); }
void obs_source_update(obs_source_t source, obs_data_t settings) { if (!source) return; obs_data_apply(source->context.settings, settings); if (source->info.update) { if (source->info.output_flags & OBS_SOURCE_VIDEO) source->defer_update = true; else source->info.update(source->context.data, source->context.settings); } }