libobs: Do not allow reconnect if stop code is OBS_OUTPUT_INVALID_STREAM
This commit is contained in:
parent
32cfa1626f
commit
a0edc5e8bc
1 changed files with 3 additions and 2 deletions
|
|
@ -3095,8 +3095,9 @@ static inline bool can_reconnect(const obs_output_t *output, int code)
|
|||
{
|
||||
bool reconnect_active = output->reconnect_retry_max != 0;
|
||||
|
||||
return (reconnecting(output) && code != OBS_OUTPUT_SUCCESS) ||
|
||||
(reconnect_active && code == OBS_OUTPUT_DISCONNECTED);
|
||||
return code != OBS_OUTPUT_INVALID_STREAM &&
|
||||
((reconnecting(output) && code != OBS_OUTPUT_SUCCESS) ||
|
||||
(reconnect_active && code == OBS_OUTPUT_DISCONNECTED));
|
||||
}
|
||||
|
||||
void obs_output_signal_stop(obs_output_t *output, int code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue