summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJames Smith <smithjd15@gmail.com>2021-09-29 00:19:42 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2021-09-29 00:53:29 -0400
commita7f2d1ffb472b72e2363ff2aa545b37d697896cc (patch)
treee9185661ef407f322282062d3a413b825208cd64 /apps
parenteeacffbd15a89870d215fed3d17577bba3fa7116 (diff)
Revert "Fix the build for 67716c6b."
This reverts commit 483563a1b2cd5d463557580498d75a693dd79077. Reason for revert: Only partially works. Change-Id: I28e412bf4eeb515cf72845f27d5772746cebc5e5
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist_viewer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index d04ca8b70c..07773b90e2 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -494,9 +494,6 @@ 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)
{
@@ -551,7 +548,10 @@ static int onplay_menu(int index)
break;
case 4:
/* file properties */
- result = filetype_load_plugin((void *)"properties", trackinfo.filename);
+ struct playlist_track_info info;
+ playlist_get_track_info(viewer.playlist, current_track->index, &info);
+
+ result = filetype_load_plugin((void *)"properties", info.filename);
ret = (result == MENU_ATTACHED_USB) ? -1 : 0;
break;
case 5: