fixed force_key logic for slowdown

This commit is contained in:
Maxim Devaev
2024-03-03 02:51:53 +02:00
parent 8f6df3b455
commit 988a91634a
4 changed files with 34 additions and 14 deletions

View File

@@ -135,7 +135,7 @@ bool us_memsink_server_check(us_memsink_s *sink, const us_frame_s *frame) {
int us_memsink_server_put(us_memsink_s *sink, const us_frame_s *frame, bool *key_requested) {
assert(sink->server);
const long double now = us_get_now_monotonic();
const ldf now = us_get_now_monotonic();
if (frame->used > US_MEMSINK_MAX_DATA) {
US_LOG_ERROR("%s-sink: Can't put frame: is too big (%zu > %zu)",