diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-21 08:13:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-21 08:13:58 +0000 |
commit | a816e4624aff8729408473bf7d1f8b3feaaa7c56 (patch) | |
tree | 55f3a15be9abb30b850cb1418496e9acd27df48a /apps | |
parent | b243e248dffb6377791d94e810b995375feba9ba (diff) | |
download | rockbox-a816e4624aff8729408473bf7d1f8b3feaaa7c56.tar.gz rockbox-a816e4624aff8729408473bf7d1f8b3feaaa7c56.zip |
store the correct index in the resume info when we fire up a single song in a
directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1838 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index b1da2bd280..90e978a0ab 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -507,6 +507,7 @@ bool dirbrowse(char *root) | |||
507 | play_list(currdir, | 507 | play_list(currdir, |
508 | dircache[dircursor+start].name, | 508 | dircache[dircursor+start].name, |
509 | 0, 0, seed ); | 509 | 0, 0, seed ); |
510 | start_index = 0; | ||
510 | } | 511 | } |
511 | else { | 512 | else { |
512 | if ( global_settings.resume ) | 513 | if ( global_settings.resume ) |
@@ -517,7 +518,7 @@ bool dirbrowse(char *root) | |||
517 | } | 518 | } |
518 | 519 | ||
519 | if ( global_settings.resume ) { | 520 | if ( global_settings.resume ) { |
520 | global_settings.resume_index = 0; | 521 | global_settings.resume_index = start_index; |
521 | global_settings.resume_offset = 0; | 522 | global_settings.resume_offset = 0; |
522 | global_settings.resume_seed = seed; | 523 | global_settings.resume_seed = seed; |
523 | settings_save(); | 524 | settings_save(); |