forked from len0rd/rockbox
Restore playlist state as necessary before checking whether current playlist has been modified
Rockbox would previously not present a warning when you were about to replace a modified playlist after restarting the player, unless you first resumed playback. Change-Id: I9752228f84b105747e41ce6e1c8f95f0f9f14c10
This commit is contained in:
parent
efe493de3d
commit
46085c8978
1 changed files with 4 additions and 0 deletions
|
@ -3435,7 +3435,11 @@ int playlist_sort(struct playlist_info* playlist, bool start_current)
|
|||
bool playlist_modified(const struct playlist_info* playlist)
|
||||
{
|
||||
if (!playlist)
|
||||
{
|
||||
playlist = ¤t_playlist;
|
||||
if (!playlist->control_created && playlist_resume() == -1)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (playlist->shuffle_modified ||
|
||||
playlist->deleted ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue