void obs_output_signal_stop(obs_output_t output, int code) { if (!output) return; obs_output_end_data_capture(output); if (code == OBS_OUTPUT_DISCONNECTED) output_reconnect(output); else signal_stop(output, code); }
void obs_output_signal_stop(obs_output_t *output, int code) { if (!output) return; obs_output_end_data_capture(output); if ((output->reconnecting && code != OBS_OUTPUT_SUCCESS) || code == OBS_OUTPUT_DISCONNECTED) output_reconnect(output); else signal_stop(output, code); }
void obs_output_signal_stop(obs_output_t *output, int code) { if (!obs_output_valid(output, "obs_output_signal_stop")) return; output->stop_code = code; if (can_reconnect(output, code)) { if (delay_active(output)) os_atomic_inc_long(&output->delay_restart_refs); obs_output_end_data_capture_internal(output, false); output_reconnect(output); } else { if (delay_active(output)) os_atomic_set_bool(&output->delay_active, false); obs_output_end_data_capture(output); } }
void obs_output_signal_stop(obs_output_t *output, int code) { if (!obs_output_valid(output, "obs_output_signal_stop")) return; obs_output_end_data_capture(output); if ((output->reconnecting && code != OBS_OUTPUT_SUCCESS) || code == OBS_OUTPUT_DISCONNECTED) { output_reconnect(output); } else { if (output->delay_active) { output->delay_active = false; obs_output_end_data_capture(output); } signal_stop(output, code); } }