This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9682 - Resumes incorrect file after deletion from directory
Attached to Project:
Rockbox
Opened by Mr. Crontab (mrcrontab) - Saturday, 20 December 2008, 08:57 GMT+2
Last edited by Alexander Levin (fml2) - Wednesday, 19 May 2010, 06:11 GMT+2
Opened by Mr. Crontab (mrcrontab) - Saturday, 20 December 2008, 08:57 GMT+2
Last edited by Alexander Levin (fml2) - Wednesday, 19 May 2010, 06:11 GMT+2
|
DetailsI apologize if this is in the wrong category, I've done my best to choose the correct section.
Using the latest current build: r19503 on sansa e260 Description: When playing back files from a directory on the filesystem, after listening to a file and deleting it, the auto resume feature chooses an incorrect file. Example/steps to reproduce: A directory has three files: 1.mp3, 2.mp3, 3.mp3. Listen to all of 1.mp3. While 2.mp3 is playing, delete 1.mp3 from the filesystem. Power the player off. When powering the player back on, it will resume from the correct time position, but it will be playing 3.mp3 rather than 2.mp3. It sounds like it is remembering which number on the directory playlist to resume, rather than the filename. If this is a dupe or intended behavior, sorry! I only recently noticed it when listening to a large directory of 1 hour long mp3s, and deleting old ones as I go. (JD edit: moved to manual to go with the other playlist/bookmark/database interaction lmiitations) |
This task depends upon
There are other alternatives, the delete function could be extended to decrement the index (if the deleted file has an index less than the current file's index). But beware that files can be deleted via the computer as well as directly from the DAP.
Alternatively check time stamps on resume. If any file changes have occurred since the resume state was saved though up you hands in horror. No I'm not serious about that one.
I have it setup so that when I shut off the player a bookmark is automatically created. I also have it setup so that when the player turns back on it will auto-resume whatever it was playing when the device was shut off.
One interesting thing about this is that if you browse to "Recent Bookmarks" and chose the bookmark, the correct file will play, even though files have been deleted from the directory.
I don't know why that bookmark works properly and the auto-resume bookmark doesn't work right, but maybe the logic for the "Recent Bookmarks" could be used for the auto-resume bookmark.