diff options
Diffstat (limited to 'apps')
-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) | |||
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: |