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:
jp9000
2017-10-12 08:18:31 -07:00
parent 4330021617
commit 3032535f56
2 changed files with 4 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}