summaryrefslogtreecommitdiffstats
path: root/apps/tagtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index fa88a5941b..ecc9f44d4d 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -722,10 +722,15 @@ static void tagtree_track_finish_event(void *data)
}
tagcache_idx--;
- /* Don't process unplayed tracks. */
- if (id3->elapsed == 0)
+ /* Don't process unplayed tracks, or tracks interrupted within the
+ first 15 seconds. */
+ if (id3->elapsed == 0
+#if CONFIG_CODEC == SWCODEC /* HWCODEC doesn't have automatic_skip */
+ || (id3->elapsed < 15 * 1000 && !automatic_skip)
+#endif
+ )
{
- logf("not logging unplayed track");
+ logf("not logging unplayed or skipped track");
return;
}