From fc8550da6ff49855449375e440dddee99a4021ba Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 23 Jul 2026 01:49:34 +0300 Subject: [PATCH] janus: bring back delay between us_memsink_client_get() calls --- janus/src/plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/janus/src/plugin.c b/janus/src/plugin.c index 1cff96f..faff466 100644 --- a/janus/src/plugin.c +++ b/janus/src/plugin.c @@ -170,7 +170,9 @@ static void *_video_sink_thread(void *arg) { } else { US_ONCE({ US_LOG_ERROR("Video ring is full"); }); } - } else if (got != US_ERROR_NO_DATA) { + } else if (got == US_ERROR_NO_DATA) { + usleep(1000); + } else { goto close_memsink; } }