From 000ce1f671d1f05b76202fd128e272e4ac9da683 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 22 Feb 2025 10:29:15 -0500 Subject: Support new stl_global_init() Signed-off-by: Andrew Opalach --- src/libsink/sink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsink') diff --git a/src/libsink/sink.c b/src/libsink/sink.c index 4aa1d51..62bb941 100644 --- a/src/libsink/sink.c +++ b/src/libsink/sink.c @@ -568,12 +568,12 @@ static void maybe_cleanup_old_entries(struct camu_sink *sink) // We check size <= MAX_AGE in the loops because sink->lru is // not indicative of the amount of entries we have loaded. - // The most obvious reason for that is that it's incremented for - // buffer and queue operations. + // The most obvious reason being it's incremented when moving + // back and forth between two entries. As well as for buffer and + // queue operations. struct camu_sink_entry *entry; - // Handle sink->lru wrapping. This has to happen in a step - // before the no wrapping case. + // Handle sink->lru wrapping. This must happen in a step before the no wrapping case. al_array_foreach_rev(sink->entries, i, entry) { // 0 65532 65533 65534 65535 // 0 1 65533 65534 65535 -- cgit v1.2.3-101-g0448