Fix being unable to restart session

This commit is contained in:
loki
2020-02-10 00:33:12 +01:00
parent f56e7fc50d
commit bb95d6ab52
11 changed files with 142 additions and 99 deletions

View File

@@ -193,6 +193,7 @@ void end_capture(capture_thread_ctx_t &capture_thread_ctx) {
}
void capture(
safe::signal_t *shutdown_event,
packet_queue_t packets,
idr_event_t idr_events,
config_t config,
@@ -344,7 +345,7 @@ void capture(
// Initiate scaling context with correct height and width
sws_t sws;
while(auto img = images->pop()) {
if(!idr_events->running()) {
if(shutdown_event->peek()) {
break;
}