diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-03-30 12:24:02 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-10-28 14:54:02 -0400 |
commit | 90e35716e312b9446515263f75e9e7cb66483c2c (patch) | |
tree | be7a60fd2e1934a3a5bcaf75d455e5c8752c4e26 /apps/playback.c | |
parent | 1ee152b5a45b907958511e5477e0f8f18458fc15 (diff) | |
download | rockbox-90e35716e312b9446515263f75e9e7cb66483c2c.tar.gz rockbox-90e35716e312b9446515263f75e9e7cb66483c2c.zip |
playlist: Rewrite playlist_save(), optimization & fixes
playlist_save() was a poorly thought out mess. This fixes the
glaring issues and hopefully ensures that saving the playlist
never loses state (such as queued tracks or modified status)
after save+resume.
Indices are now updated on the fly, which is faster and needs
no extra memory. But if an error occurs, the playlist will be
corrupted. There is currently no attempt to handle this since
errors should be unlikely, but some error handling needs to be
added in the future.
Change-Id: If8a5dbd6a596460be08ee0b7bab9f24337886ea4
Diffstat (limited to 'apps/playback.c')
0 files changed, 0 insertions, 0 deletions