|
|
|
@ -233,7 +233,7 @@ void SinkStream::WaitFreeSpace(std::stop_token stop_token) { |
|
|
|
|
|
|
|
release_cv.wait_for(lk, std::chrono::milliseconds(5), can_continue); |
|
|
|
|
|
|
|
if (queued_buffers > max_queue_size + 3) { |
|
|
|
if (queued_buffers > max_queue_size + 10) { |
|
|
|
release_cv.wait(lk, stop_token, can_continue); |
|
|
|
} |
|
|
|
} |
|
|
|
|