pictureflow: Fix concurrency issues building art cache

Guards against possible image corruption

Change-Id: Id7e1e3a09cb13c255eea0ffdd2e4c4d558086997
This commit is contained in:
Christian Soffke 2021-12-13 00:07:39 +01:00 committed by Aidan MacDonald
parent c116db6065
commit 5146c3043f

View file

@ -4416,7 +4416,12 @@ static int pictureflow_main(const char* selected_file)
break;
case pf_idle:
render_all_slides();
if (aa_cache.inspected < pf_idx.album_ct)
{
buf_ctx_lock();
incremental_albumart_cache(false);
buf_ctx_unlock();
}
break;
}