obs-outputs: Signal stop if stop called when not active
Fixes a bug with reconnecting where the reconnecting would get stuck in the "stopping" state.
This commit is contained in:
@@ -267,6 +267,8 @@ static void ftl_stream_stop(void *data, uint64_t ts)
|
||||
if (active(stream)) {
|
||||
if (stream->stop_ts == 0)
|
||||
os_sem_post(stream->send_sem);
|
||||
} else {
|
||||
obs_output_signal_stop(stream->output, OBS_OUTPUT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -187,6 +187,8 @@ static void rtmp_stream_stop(void *data, uint64_t ts)
|
||||
if (active(stream)) {
|
||||
if (stream->stop_ts == 0)
|
||||
os_sem_post(stream->send_sem);
|
||||
} else {
|
||||
obs_output_signal_stop(stream->output, OBS_OUTPUT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user