summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c5
-rw-r--r--apps/playlist.h1
-rw-r--r--apps/tree.c3
3 files changed, 8 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 1e5c12a181..3c512cd82f 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -106,6 +106,11 @@ int playlist_amount(void)
106 return playlist.amount; 106 return playlist.amount;
107} 107}
108 108
109int playlist_first_index(void)
110{
111 return playlist.first_index;
112}
113
109int playlist_next(int steps) 114int playlist_next(int steps)
110{ 115{
111 playlist.index = get_next_index(steps); 116 playlist.index = get_next_index(steps);
diff --git a/apps/playlist.h b/apps/playlist.h
index 24f9d7df6f..c47fec4325 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -53,5 +53,6 @@ void add_indices_to_playlist(void);
53void playlist_clear(void); 53void playlist_clear(void);
54int playlist_add(char *filename); 54int playlist_add(char *filename);
55int playlist_amount(void); 55int playlist_amount(void);
56int playlist_first_index(void);
56 57
57#endif /* __PLAYLIST_H__ */ 58#endif /* __PLAYLIST_H__ */
diff --git a/apps/tree.c b/apps/tree.c
index 5cd803adfe..b35e44861c 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -906,7 +906,8 @@ bool dirbrowse(char *root)
906 shuffled list in case shuffle is enabled */ 906 shuffled list in case shuffle is enabled */
907 global_settings.resume_index = start_index; 907 global_settings.resume_index = start_index;
908 global_settings.resume_offset = 0; 908 global_settings.resume_offset = 0;
909 global_settings.resume_first_index = start_index; 909 global_settings.resume_first_index =
910 playlist_first_index();
910 global_settings.resume_seed = seed; 911 global_settings.resume_seed = seed;
911 settings_save(); 912 settings_save();
912 } 913 }