summaryrefslogtreecommitdiff
path: root/apps/playlist_viewer.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r--apps/playlist_viewer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index a466b7e730..8452f4369a 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -605,14 +605,13 @@ bool playlist_viewer_ex(char* filename)
605 605
606 /* Timeout so we can determine if play status has changed */ 606 /* Timeout so we can determine if play status has changed */
607 button = get_action(CONTEXT_TREE,HZ/2); 607 button = get_action(CONTEXT_TREE,HZ/2);
608 int list_action; 608 if( (gui_synclist_do_button(&playlist_lists, &button,LIST_WRAP_UNLESS_HELD)) )
609 if( (list_action=gui_synclist_do_button(&playlist_lists, button,LIST_WRAP_UNLESS_HELD))!=0 )
610 { 609 {
611 viewer.selected_track=gui_synclist_get_sel_pos(&playlist_lists); 610 viewer.selected_track=gui_synclist_get_sel_pos(&playlist_lists);
612 if(playlist_buffer_needs_reload(&viewer.buffer, 611 if(playlist_buffer_needs_reload(&viewer.buffer,
613 viewer.selected_track)) 612 viewer.selected_track))
614 playlist_buffer_load_entries_screen(&viewer.buffer, 613 playlist_buffer_load_entries_screen(&viewer.buffer,
615 list_action==ACTION_STD_NEXT? 614 button==ACTION_STD_NEXT?
616 FORWARD 615 FORWARD
617 : 616 :
618 BACKWARD 617 BACKWARD
@@ -778,7 +777,7 @@ bool search_playlist(void)
778 while (!exit) 777 while (!exit)
779 { 778 {
780 button = get_action(CONTEXT_LIST,TIMEOUT_BLOCK); 779 button = get_action(CONTEXT_LIST,TIMEOUT_BLOCK);
781 if (gui_synclist_do_button(&playlist_lists, button,LIST_WRAP_UNLESS_HELD)) 780 if (gui_synclist_do_button(&playlist_lists, &button, LIST_WRAP_UNLESS_HELD))
782 continue; 781 continue;
783 switch (button) 782 switch (button)
784 { 783 {