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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 6a20bf1aac..d28643ab20 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -458,6 +458,7 @@ static bool update_playlist(bool force)
458 { 458 {
459 global_status.resume_index = -1; 459 global_status.resume_index = -1;
460 global_status.resume_offset = -1; 460 global_status.resume_offset = -1;
461 global_status.resume_elapsed = -1;
461 return false; 462 return false;
462 } 463 }
463 playlist_buffer_load_entries_screen(&viewer.buffer, FORWARD, 464 playlist_buffer_load_entries_screen(&viewer.buffer, FORWARD,
@@ -466,6 +467,7 @@ static bool update_playlist(bool force)
466 { 467 {
467 global_status.resume_index = -1; 468 global_status.resume_index = -1;
468 global_status.resume_offset = -1; 469 global_status.resume_offset = -1;
470 global_status.resume_elapsed = -1;
469 return false; 471 return false;
470 } 472 }
471 } 473 }
@@ -526,7 +528,7 @@ static int onplay_menu(int index)
526 if (current_track->display_index!=viewer.num_tracks || 528 if (current_track->display_index!=viewer.num_tracks ||
527 global_settings.repeat_mode == REPEAT_ALL) 529 global_settings.repeat_mode == REPEAT_ALL)
528 { 530 {
529 audio_play(0); 531 audio_play(0, 0);
530 viewer.current_playing_track = -1; 532 viewer.current_playing_track = -1;
531 } 533 }
532 } 534 }
@@ -773,7 +775,7 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
773 /* play new track */ 775 /* play new track */
774 if (!global_settings.party_mode) 776 if (!global_settings.party_mode)
775 { 777 {
776 playlist_start(current_track->index, 0); 778 playlist_start(current_track->index, 0, 0);
777 update_playlist(false); 779 update_playlist(false);
778 } 780 }
779 } 781 }
@@ -790,7 +792,7 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
790 goto exit; 792 goto exit;
791 if (global_settings.playlist_shuffle) 793 if (global_settings.playlist_shuffle)
792 start_index = playlist_shuffle(current_tick, start_index); 794 start_index = playlist_shuffle(current_tick, start_index);
793 playlist_start(start_index, 0); 795 playlist_start(start_index, 0, 0);
794 796
795 /* Our playlist is now the current list */ 797 /* Our playlist is now the current list */
796 if (!playlist_viewer_init(&viewer, NULL, true)) 798 if (!playlist_viewer_init(&viewer, NULL, true))
@@ -937,7 +939,7 @@ bool search_playlist(void)
937 case ACTION_STD_OK: 939 case ACTION_STD_OK:
938 { 940 {
939 int sel = gui_synclist_get_sel_pos(&playlist_lists); 941 int sel = gui_synclist_get_sel_pos(&playlist_lists);
940 playlist_start(found_indicies[sel], 0); 942 playlist_start(found_indicies[sel], 0, 0);
941 exit = 1; 943 exit = 1;
942 } 944 }
943 break; 945 break;