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
jp9000 2016-06-21 04:10:25 -07:00
parent e13dd53376
commit b738f496b5
1 changed files with 4 additions and 0 deletions

View File

@ -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;