dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Proposed fix for FS#6411

Proposed fix for FS#6411

From: Richard Quirk <>
Date: Tue, 11 Dec 2012 22:37:03 +0100

I've had a crack at fixing this old bug - - when you delete or add a track to
a playlist, resume starts the wrong track afterwards. Happened to me all
the time when copying new podcasts across.

Given that there isn't much space to keep the settings in, I store the
crc32 of the file name, then restore the stored index only when the name
changed. Otherwise the resume code goes looking through the playlist for
a matching crc. This is obviously open to collisions, but it seems "good
enough" and has worked so far for me. Slowdown might be a problem, but I
tried with a 900 track playlist and it was barely noticeable.
Received on 2012-12-11

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy