summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-11-14 01:18:39 +0100
committerChristian Soffke <christian.soffke@gmail.com>2023-11-15 23:49:53 +0100
commit51148279373fd903c87536362540f89097bef7f3 (patch)
treef35e655b6719c30519196f6d38701ee7e6d34a9a /apps/root_menu.c
parentbd93f9f96f1dc4f852644a3744fa09b913cd0a0a (diff)
downloadrockbox-51148279373fd903c87536362540f89097bef7f3.tar.gz
rockbox-51148279373fd903c87536362540f89097bef7f3.zip
Fix: Rotate indices after saving playlist w/ first_index > 0
When saving the current playlist, entries written out to disk were rotated, but its indices were not, resulting in first_index being out of sync between the two. Thus, an incorrect index was used for any playlist commands, from the moment you saved the playlist until the next time you resumed, which didn't produce the right playlist. Change-Id: Ie4b02ce9e07e565b1b15c938cc4b820db08e8f1f
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 71753f27c4..762f5b2961 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -330,7 +330,7 @@ static int wpsscrn(void* param)
330 } 330 }
331 else if ( global_status.resume_index != -1 ) 331 else if ( global_status.resume_index != -1 )
332 { 332 {
333 DEBUGF("Resume index %X crc32 %lX offset %lX\n", 333 DEBUGF("Resume index %d crc32 %lX offset %lX\n",
334 global_status.resume_index, 334 global_status.resume_index,
335 (unsigned long)global_status.resume_crc32, 335 (unsigned long)global_status.resume_crc32,
336 (unsigned long)global_status.resume_offset); 336 (unsigned long)global_status.resume_offset);