pictureflow: fix stack overflow

I noticed a stack overflow on the Fiio M3K when launching
PictureFlow from the Playlist Viewer after opening a playlist
from the file browser using the context menu's "View" option.

Change-Id: Id87fb59e36518bd7ceb61f886d5759fc3206aadf
This commit is contained in:
Christian Soffke 2022-08-15 04:55:41 +02:00
parent d4917888e3
commit 7a3d829543

View file

@ -4214,7 +4214,7 @@ static void set_initial_slide(const char* selected_file)
pf_cfg.last_album);
else
{
struct mp3entry id3;
static struct mp3entry id3;
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
if (rb->tagcache_fill_tags(&id3, selected_file))
set_current_slide(id3_get_index(&id3));