summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-08-15 04:55:41 +0200
committerChristian Soffke <christian.soffke@gmail.com>2022-08-16 13:18:43 +0200
commit7a3d829543f437691ca36278d862f5ddf228f816 (patch)
tree311c84cb645e46b4454e08c077ac904ef486db15
parentd4917888e3cee943cfb050db3f6b93f83b0356e3 (diff)
downloadrockbox-7a3d829543f437691ca36278d862f5ddf228f816.tar.gz
rockbox-7a3d829543f437691ca36278d862f5ddf228f816.zip
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
-rw-r--r--apps/plugins/pictureflow/pictureflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 2f075a7e61..b20225492e 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -4214,7 +4214,7 @@ static void set_initial_slide(const char* selected_file)
4214 pf_cfg.last_album); 4214 pf_cfg.last_album);
4215 else 4215 else
4216 { 4216 {
4217 struct mp3entry id3; 4217 static struct mp3entry id3;
4218#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) 4218#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
4219 if (rb->tagcache_fill_tags(&id3, selected_file)) 4219 if (rb->tagcache_fill_tags(&id3, selected_file))
4220 set_current_slide(id3_get_index(&id3)); 4220 set_current_slide(id3_get_index(&id3));