mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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;
|
break;
|
||||||
case pf_idle:
|
case pf_idle:
|
||||||
render_all_slides();
|
render_all_slides();
|
||||||
|
if (aa_cache.inspected < pf_idx.album_ct)
|
||||||
|
{
|
||||||
|
buf_ctx_lock();
|
||||||
incremental_albumart_cache(false);
|
incremental_albumart_cache(false);
|
||||||
|
buf_ctx_unlock();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue