janus: bring back delay between us_memsink_client_get() calls

This commit is contained in:
Maxim Devaev
2026-07-23 01:49:34 +03:00
parent 604d6613c5
commit fc8550da6f

View File

@@ -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;
}
}