Skip to content

Commit

Permalink
Keep the channeloutput thread around a bit longer so slight delays lo…
Browse files Browse the repository at this point in the history
…ading media (in particularl videos) can allow the thread to be re-used
  • Loading branch information
dkulp committed Nov 30, 2019
1 parent 42eef91 commit 19fea91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/channeloutput/channeloutputthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 19fea91

Please sign in to comment.