summaryrefslogtreecommitdiff
path: root/apps/playlist_viewer.c
diff options
context:
space:
mode:
authorJames D. Smith <smithjd15@gmail.com>2021-09-19 21:28:10 -0600
committerJames D. Smith <smithjd15@gmail.com>2021-09-19 21:28:10 -0600
commit483563a1b2cd5d463557580498d75a693dd79077 (patch)
tree93911627f9fad9a0a7194c65943a44191276eba3 /apps/playlist_viewer.c
parent0ca0940f012566f8bb9d378386f97608d21ea8bc (diff)
downloadrockbox-483563a1b2cd5d463557580498d75a693dd79077.tar.gz
rockbox-483563a1b2cd5d463557580498d75a693dd79077.zip
Fix the build for 67716c6b.
Change-Id: I3917f64313345cf39d6105a0c0bc2f2a4617be8a
Diffstat (limited to 'apps/playlist_viewer.c')
-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 07773b90e2..d04ca8b70c 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -494,6 +494,9 @@ static int onplay_menu(int index)
494 ID2P(LANG_PLAYLISTVIEWER_SETTINGS)); 494 ID2P(LANG_PLAYLISTVIEWER_SETTINGS));
495 bool current = (current_track->index == viewer.current_playing_track); 495 bool current = (current_track->index == viewer.current_playing_track);
496 496
497 struct playlist_track_info trackinfo;
498 playlist_get_track_info(viewer.playlist, index, &trackinfo);
499
497 result = do_menu(&menu_items, NULL, NULL, false); 500 result = do_menu(&menu_items, NULL, NULL, false);
498 if (result == MENU_ATTACHED_USB) 501 if (result == MENU_ATTACHED_USB)
499 { 502 {
@@ -548,10 +551,7 @@ static int onplay_menu(int index)
548 break; 551 break;
549 case 4: 552 case 4:
550 /* file properties */ 553 /* file properties */
551 struct playlist_track_info info; 554 result = filetype_load_plugin((void *)"properties", trackinfo.filename);
552 playlist_get_track_info(viewer.playlist, current_track->index, &info);
553
554 result = filetype_load_plugin((void *)"properties", info.filename);
555 ret = (result == MENU_ATTACHED_USB) ? -1 : 0; 555 ret = (result == MENU_ATTACHED_USB) ? -1 : 0;
556 break; 556 break;
557 case 5: 557 case 5: