summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-03-30 12:24:02 +0100
committerAidan MacDonald <amachronic@protonmail.com>2023-10-28 14:54:02 -0400
commit90e35716e312b9446515263f75e9e7cb66483c2c (patch)
treebe7a60fd2e1934a3a5bcaf75d455e5c8752c4e26 /firmware
parent1ee152b5a45b907958511e5477e0f8f18458fc15 (diff)
downloadrockbox-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 'firmware')
0 files changed, 0 insertions, 0 deletions