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:
parent
4330021617
commit
3032535f56
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue