mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-02 18:36:53 -04:00
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:
1 parent
4330021617
commit
3032535f56
2 files changed
+4
No files matched your search
@@ -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