summaryrefslogtreecommitdiffstats
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2011-01-02 03:48:40 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2011-01-02 03:48:40 +0000
commitcacc64a4feef33dfd2aef2a1092f110ac196382b (patch)
treebaddda51b0d0aa7ea973ce02dc199a7acb064cc3 /apps/tagtree.c
parent66e8fc0f0d05d926a90e8d9991f78b7a855eb7f3 (diff)
downloadrockbox-cacc64a4feef33dfd2aef2a1092f110ac196382b.tar.gz
rockbox-cacc64a4feef33dfd2aef2a1092f110ac196382b.tar.bz2
rockbox-cacc64a4feef33dfd2aef2a1092f110ac196382b.zip
Blind commit a 'fix' for automatic resume on HWCODEC since I don't understand HWCODEC and have no way to test builds for it. For now just disable it. In the long term it would be nice to support this on HWCODEC, or failing that, clean this up a little more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28943 a1c6a512-1295-4272-9138-f99709370657
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;
static struct tree_context *tc;
+#if CONFIG_CODEC == SWCODEC
extern bool automatic_skip; /* Who initiated in-progress skip? (C/A-) */
+#endif
static int get_token_str(char *buf, int size)
{
@@ -677,7 +679,8 @@ static void tagtree_buffer_event(void *data)
logf("-> %ld/%ld", id3->playcount, id3->playtime);
}
-
+
+ #if CONFIG_CODEC == SWCODEC
if (global_settings.autoresume_enable)
{
/* Load current file resume offset if not already defined (by
@@ -690,7 +693,8 @@ static void tagtree_buffer_event(void *data)
str_or_empty(id3->title), id3->offset);
}
}
-
+ #endif
+
/* Store our tagcache index pointer. */
id3->tagcache_idx = tcs.idx_id+1;
@@ -753,6 +757,7 @@ static void tagtree_track_finish_event(void *data)
tagcache_update_numeric(tagcache_idx, tag_lastplayed, lastplayed);
}
+#if CONFIG_CODEC == SWCODEC
if (global_settings.autoresume_enable)
{
unsigned long offset
@@ -763,6 +768,7 @@ static void tagtree_track_finish_event(void *data)
logf("tagtree_track_finish_event: Save offset for %s: %lX",
str_or_empty(id3->title), offset);
}
+#endif
}
bool tagtree_export(void)