libobs: Forcibly stop output if stopped during reconnect
This fixes an design flaw where a delayed output would schedule a stop even while in the process of reconnecting instead of just shutting down right away.master
parent
e13dd53376
commit
b738f496b5
|
@ -367,6 +367,10 @@ void obs_output_stop(obs_output_t *output)
|
|||
return;
|
||||
if (!active(output) && !reconnecting(output))
|
||||
return;
|
||||
if (reconnecting(output)) {
|
||||
obs_output_force_stop(output);
|
||||
return;
|
||||
}
|
||||
|
||||
encoded = (output->info.flags & OBS_OUTPUT_ENCODED) != 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue