mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 05:44:43 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user