summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 8ebac0b3a5..4673af38cf 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -170,7 +170,9 @@ static int current_entry_count;
170 170
171static struct tree_context *tc; 171static struct tree_context *tc;
172 172
173#if CONFIG_CODEC == SWCODEC
173extern bool automatic_skip; /* Who initiated in-progress skip? (C/A-) */ 174extern bool automatic_skip; /* Who initiated in-progress skip? (C/A-) */
175#endif
174 176
175static int get_token_str(char *buf, int size) 177static int get_token_str(char *buf, int size)
176{ 178{
@@ -677,7 +679,8 @@ static void tagtree_buffer_event(void *data)
677 679
678 logf("-> %ld/%ld", id3->playcount, id3->playtime); 680 logf("-> %ld/%ld", id3->playcount, id3->playtime);
679 } 681 }
680 682
683 #if CONFIG_CODEC == SWCODEC
681 if (global_settings.autoresume_enable) 684 if (global_settings.autoresume_enable)
682 { 685 {
683 /* Load current file resume offset if not already defined (by 686 /* Load current file resume offset if not already defined (by
@@ -690,7 +693,8 @@ static void tagtree_buffer_event(void *data)
690 str_or_empty(id3->title), id3->offset); 693 str_or_empty(id3->title), id3->offset);
691 } 694 }
692 } 695 }
693 696 #endif
697
694 /* Store our tagcache index pointer. */ 698 /* Store our tagcache index pointer. */
695 id3->tagcache_idx = tcs.idx_id+1; 699 id3->tagcache_idx = tcs.idx_id+1;
696 700
@@ -753,6 +757,7 @@ static void tagtree_track_finish_event(void *data)
753 tagcache_update_numeric(tagcache_idx, tag_lastplayed, lastplayed); 757 tagcache_update_numeric(tagcache_idx, tag_lastplayed, lastplayed);
754 } 758 }
755 759
760#if CONFIG_CODEC == SWCODEC
756 if (global_settings.autoresume_enable) 761 if (global_settings.autoresume_enable)
757 { 762 {
758 unsigned long offset 763 unsigned long offset
@@ -763,6 +768,7 @@ static void tagtree_track_finish_event(void *data)
763 logf("tagtree_track_finish_event: Save offset for %s: %lX", 768 logf("tagtree_track_finish_event: Save offset for %s: %lX",
764 str_or_empty(id3->title), offset); 769 str_or_empty(id3->title), offset);
765 } 770 }
771#endif
766} 772}
767 773
768bool tagtree_export(void) 774bool tagtree_export(void)