pictureflow: Fix concurrency issues building art cache
Guards against possible image corruption Change-Id: Id7e1e3a09cb13c255eea0ffdd2e4c4d558086997
This commit is contained in:
parent
c116db6065
commit
5146c3043f
1 changed files with 6 additions and 1 deletions
|
@ -4416,7 +4416,12 @@ static int pictureflow_main(const char* selected_file)
|
|||
break;
|
||||
case pf_idle:
|
||||
render_all_slides();
|
||||
incremental_albumart_cache(false);
|
||||
if (aa_cache.inspected < pf_idx.album_ct)
|
||||
{
|
||||
buf_ctx_lock();
|
||||
incremental_albumart_cache(false);
|
||||
buf_ctx_unlock();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue