diff options
author | James D. Smith <smithjd15@gmail.com> | 2021-09-19 21:28:10 -0600 |
---|---|---|
committer | James D. Smith <smithjd15@gmail.com> | 2021-09-19 21:28:10 -0600 |
commit | 483563a1b2cd5d463557580498d75a693dd79077 (patch) | |
tree | 93911627f9fad9a0a7194c65943a44191276eba3 | |
parent | 0ca0940f012566f8bb9d378386f97608d21ea8bc (diff) | |
download | rockbox-483563a1b2.tar.gz rockbox-483563a1b2.zip |
Fix the build for 67716c6b.
Change-Id: I3917f64313345cf39d6105a0c0bc2f2a4617be8a
-rw-r--r-- | apps/playlist_viewer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 07773b90e2..d04ca8b70c 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -494,6 +494,9 @@ static int onplay_menu(int index) ID2P(LANG_PLAYLISTVIEWER_SETTINGS)); bool current = (current_track->index == viewer.current_playing_track); + struct playlist_track_info trackinfo; + playlist_get_track_info(viewer.playlist, index, &trackinfo); + result = do_menu(&menu_items, NULL, NULL, false); if (result == MENU_ATTACHED_USB) { @@ -548,10 +551,7 @@ static int onplay_menu(int index) break; case 4: /* file properties */ - struct playlist_track_info info; - playlist_get_track_info(viewer.playlist, current_track->index, &info); - - result = filetype_load_plugin((void *)"properties", info.filename); + result = filetype_load_plugin((void *)"properties", trackinfo.filename); ret = (result == MENU_ATTACHED_USB) ? -1 : 0; break; case 5: |