From 19fea911a4a0ce10e6ff90d07387e563b959c76a Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Fri, 29 Nov 2019 20:42:00 -0500 Subject: [PATCH] Keep the channeloutput thread around a bit longer so slight delays loading media (in particularl videos) can allow the thread to be re-used --- src/channeloutput/channeloutputthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channeloutput/channeloutputthread.c b/src/channeloutput/channeloutputthread.c index c5520ea8d..399877965 100644 --- a/src/channeloutput/channeloutputthread.c +++ b/src/channeloutput/channeloutputthread.c @@ -218,9 +218,9 @@ void *RunChannelOutputThread(void *data) if (onceMore) { onceMore--; } else { - //we will wait up to 1000ms to see if the thread is still needed + //we will wait up to 2500ms to see if the thread is still needed ThreadIsExiting = 1; - if (outputThreadSatusCond.wait_for(statusLock, std::chrono::milliseconds(1000)) == std::cv_status::no_timeout) { + if (outputThreadSatusCond.wait_for(statusLock, std::chrono::milliseconds(2500)) == std::cv_status::no_timeout) { //signal to keep going ThreadIsExiting = 0; statusLock.unlock();