Don’t erase a user’s stopped dynamic playlist when inserting/queuing songs
Rockbox would unexpectedly and without warning erase the current dynamic playlist (when it hadn’t finished playing) if the user inserted or queued up items while playback was stopped. This fix ensures that the playlist is only deleted if it has either finished playing or can't be resumed. Change-Id: I73b7bd56e6399f9be4bb000bae39c8b6a5e1b79b
This commit is contained in:
parent
69746d8400
commit
abebc6b9ac
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ MAKE_ONPLAYMENU( wps_playlist_menu, ID2P(LANG_PLAYLIST),
|
|||
/* CONTEXT_[TREE|ID3DB] playlist options */
|
||||
static bool add_to_playlist(int position, bool queue)
|
||||
{
|
||||
bool new_playlist = !(audio_status() & AUDIO_STATUS_PLAY);
|
||||
bool new_playlist = !(audio_status() & AUDIO_STATUS_PLAY) && (global_status.resume_index == -1 || playlist_resume() == -1);
|
||||
const char *lines[] = {
|
||||
ID2P(LANG_RECURSE_DIRECTORY_QUESTION),
|
||||
selected_file
|
||||
|
|
Loading…
Reference in a new issue