From 01764c4e708203d2729f2d408f7009b0371b5c00 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Wed, 8 May 2024 01:55:55 -0700 Subject: [PATCH] libobs: Fix missing started signal upon second start of delayed output If an output has delay enabled and is gracefully stopped once, upon startup a second time, it will not send the `started` signal. This is due to `obs_output_signal_stop()` pre-emtively setting `delay_active` to false. It is later set to `false` in `obs_output_end_data_capture_internal()`, so this logic is not needed anyway. --- libobs/obs-output.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libobs/obs-output.c b/libobs/obs-output.c index 8528fcb011a62f..1487cf0806977e 100644 --- a/libobs/obs-output.c +++ b/libobs/obs-output.c @@ -3002,8 +3002,6 @@ void obs_output_signal_stop(obs_output_t *output, int code) obs_output_end_data_capture_internal(output, false); output_reconnect(output); } else { - if (delay_active(output)) - os_atomic_set_bool(&output->delay_active, false); obs_output_end_data_capture(output); } }