diff options
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index ecc9f44d4d..575ab221ac 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -52,6 +52,7 @@ | |||
52 | #include "appevents.h" | 52 | #include "appevents.h" |
53 | #include "storage.h" | 53 | #include "storage.h" |
54 | #include "dir.h" | 54 | #include "dir.h" |
55 | #include "playback.h" | ||
55 | 56 | ||
56 | #define str_or_empty(x) (x ? x : "(NULL)") | 57 | #define str_or_empty(x) (x ? x : "(NULL)") |
57 | 58 | ||
@@ -170,10 +171,6 @@ static int current_entry_count; | |||
170 | 171 | ||
171 | static struct tree_context *tc; | 172 | static struct tree_context *tc; |
172 | 173 | ||
173 | #if CONFIG_CODEC == SWCODEC | ||
174 | extern bool automatic_skip; /* Who initiated in-progress skip? (C/A-) */ | ||
175 | #endif | ||
176 | |||
177 | static int get_token_str(char *buf, int size) | 174 | static int get_token_str(char *buf, int size) |
178 | { | 175 | { |
179 | /* Find the start. */ | 176 | /* Find the start. */ |
@@ -726,7 +723,7 @@ static void tagtree_track_finish_event(void *data) | |||
726 | first 15 seconds. */ | 723 | first 15 seconds. */ |
727 | if (id3->elapsed == 0 | 724 | if (id3->elapsed == 0 |
728 | #if CONFIG_CODEC == SWCODEC /* HWCODEC doesn't have automatic_skip */ | 725 | #if CONFIG_CODEC == SWCODEC /* HWCODEC doesn't have automatic_skip */ |
729 | || (id3->elapsed < 15 * 1000 && !automatic_skip) | 726 | || (id3->elapsed < 15 * 1000 && !audio_automatic_skip()) |
730 | #endif | 727 | #endif |
731 | ) | 728 | ) |
732 | { | 729 | { |
@@ -766,7 +763,7 @@ static void tagtree_track_finish_event(void *data) | |||
766 | if (global_settings.autoresume_enable) | 763 | if (global_settings.autoresume_enable) |
767 | { | 764 | { |
768 | unsigned long offset | 765 | unsigned long offset |
769 | = automatic_skip ? 0 : id3->offset; | 766 | = audio_automatic_skip() ? 0 : id3->offset; |
770 | 767 | ||
771 | tagcache_update_numeric(tagcache_idx, tag_lastoffset, offset); | 768 | tagcache_update_numeric(tagcache_idx, tag_lastoffset, offset); |
772 | 769 | ||