Browse Source

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.
jp9000 9 years ago
parent
commit
b738f496b5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libobs/obs-output.c

+ 4 - 0
libobs/obs-output.c

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