forked from len0rd/rockbox
Playlist Viewer: fix: Don't invalidate resume info unless current playlist
It makes no sense to prevent the current playlist from resuming when some other playlist becomes empty. Change-Id: Ibfb7a15b0826ed3baeefbc5060b13d73894b81e6
This commit is contained in:
parent
888f4dbe57
commit
08c32cee7c
1 changed files with 4 additions and 6 deletions
|
|
@ -349,18 +349,16 @@ static bool update_playlist(bool force)
|
|||
viewer.num_tracks = nb_tracks;
|
||||
if (viewer.num_tracks <= 0)
|
||||
{
|
||||
global_status.resume_index = -1;
|
||||
global_status.resume_offset = -1;
|
||||
global_status.resume_elapsed = -1;
|
||||
if (!viewer.playlist)
|
||||
playlist_update_resume_info(NULL);
|
||||
return false;
|
||||
}
|
||||
playlist_buffer_load_entries_screen(&viewer.buffer, FORWARD,
|
||||
viewer.selected_track);
|
||||
if (viewer.buffer.num_loaded <= 0)
|
||||
{
|
||||
global_status.resume_index = -1;
|
||||
global_status.resume_offset = -1;
|
||||
global_status.resume_elapsed = -1;
|
||||
if (!viewer.playlist)
|
||||
playlist_update_resume_info(NULL);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue