Use crc32 of filename to resume tracks
commit212e7808d5f39e1d7fc1bd487de8f13c50d136f2
authorRichard Quirk <richard.quirk@gmail.com>
Sun, 9 Dec 2012 20:04:17 +0000 (9 21:04 +0100)
committerJonathan Gordon <rockbox@jdgordon.info>
Wed, 2 Jan 2013 07:29:38 +0000 (2 08:29 +0100)
treedc16ed3fc3a4857554e0d58d4a277d558eefab77
parent17181ecf30d2f7c73eba73309a35e770fab2c7ca
Use crc32 of filename to resume tracks

As well as using an index, which breaks when a file is added or
removed, use the crc32 of the filename. When the crc32 check passes the
index is used directly. When it fails, the slow path is taken checking
each file name in the playlist until the right crc is found. If that fails
the playlist is started from the beginning.

See http://www.rockbox.org/tracker/6411

Bump plugin API and nvram version numbers

Change-Id: I156f61a9f1ac428b4a682bc680379cb6b60b1b10
Reviewed-on: http://gerrit.rockbox.org/372
Tested-by: Jonathan Gordon <rockbox@jdgordon.info>
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
13 files changed:
apps/filetree.c
apps/playlist.c
apps/playlist.h
apps/plugin.c
apps/plugin.h
apps/plugins/alarmclock.c
apps/plugins/lib/playback_control.c
apps/plugins/lrcplayer.c
apps/root_menu.c
apps/settings.h
apps/settings_list.c
apps/settings_list.h
docs/KNOWN_ISSUES