If reconnecting, ignore the disconnect code
Usually if you are reconnecting after network outage, it will give a different code (such as OBS_OUTPUT_CONNECT_FAILED). So, if already reconnecting, ignore the code unless it's OBS_OUTPUT_SUCCESS.master
parent
544b5e8741
commit
b060d86614
|
@ -769,7 +769,8 @@ void obs_output_signal_stop(obs_output_t output, int code)
|
|||
return;
|
||||
|
||||
obs_output_end_data_capture(output);
|
||||
if (code == OBS_OUTPUT_DISCONNECTED)
|
||||
if ((output->reconnecting && code != OBS_OUTPUT_SUCCESS) ||
|
||||
code == OBS_OUTPUT_DISCONNECTED)
|
||||
output_reconnect(output);
|
||||
else
|
||||
signal_stop(output, code);
|
||||
|
|
Loading…
Reference in New Issue