提交 b060d866 编写于 作者: J jp9000

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.
上级 544b5e87
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册