summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-10-25 10:17:57 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-10-25 10:17:57 +0000
commit710ccb7b483da9be9543ea40a99dee7fd6f8fa98 (patch)
treec2e06245a5c91bc1680fe3a033a44e4220fcc459 /apps/onplay.c
parent22dfcdb3eca609a920787a154f758b54dd38a550 (diff)
downloadrockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.zip
rockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.tar.gz
rockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.tar.bz2
rockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.tar.xz
ifdef all the tagcache code, allows rombox to be compiled again, Thanks Austin Appel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11338 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 4fd9d41..60a7379 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -64,7 +64,9 @@
#endif
#include "playlist_menu.h"
#include "playlist_catalog.h"
+#ifdef HAVE_TAGCACHE
#include "tagtree.h"
+#endif
static int context;
static char* selected_file = NULL;
@@ -181,11 +183,13 @@ static bool add_to_playlist(int position, bool queue)
if (position == PLAYLIST_INSERT_SHUFFLED)
srand(current_tick);
+#ifdef HAVE_TAGCACHE
if (context == CONTEXT_ID3DB)
{
tagtree_insert_selection_playlist(position, queue);
}
else
+#endif
{
if ((selected_file_attr & TREE_ATTR_MASK) == TREE_ATTR_MPA)
playlist_insert_track(NULL, selected_file, position, queue, true);
@@ -207,7 +211,7 @@ static bool add_to_playlist(int position, bool queue)
else if ((selected_file_attr & TREE_ATTR_MASK) == TREE_ATTR_M3U)
playlist_insert_playlist(NULL, selected_file, position, queue);
}
-
+
if (new_playlist && (playlist_amount() > 0))
{
/* nothing is currently playing so begin playing what we just