فهرست منبع

libobs: Fix bug where outputs would not set stopped event

When an output fails to connect and it's already been prematurely
stopped, the event to mark the output as stopped would not be signaled,
causing obs_output_destroy to lock up indefinitely while waiting for the
event to be signaled.
jp9000 8 سال پیش
والد
کامیت
a2953d1161
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      libobs/obs-output.c

+ 1 - 0
libobs/obs-output.c

@@ -1819,6 +1819,7 @@ static void obs_output_end_data_capture_internal(obs_output_t *output,
 		if (signal) {
 		if (signal) {
 			signal_stop(output);
 			signal_stop(output);
 			output->stop_code = OBS_OUTPUT_SUCCESS;
 			output->stop_code = OBS_OUTPUT_SUCCESS;
+			os_event_signal(output->stopping_event);
 		}
 		}
 		return;
 		return;
 	}
 	}