summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-03-26 16:37:18 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-03-26 16:37:18 +0000
commitb7251261de9de778e3e37b0fa66a533e5f066c0c (patch)
tree7640d283fa4a1b626868e91db3e9982314881107
parentd1f9495c832b9c1121baccd7d5a3ccdcdfe2b96c (diff)
downloadrockbox-b7251261de9de778e3e37b0fa66a533e5f066c0c.zip
rockbox-b7251261de9de778e3e37b0fa66a533e5f066c0c.tar.gz
rockbox-b7251261de9de778e3e37b0fa66a533e5f066c0c.tar.bz2
rockbox-b7251261de9de778e3e37b0fa66a533e5f066c0c.tar.xz
Fill WPS tags from tagcache if available.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9260 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c5
-rw-r--r--apps/tagcache.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 00c4572..4d86f0c 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -50,6 +50,7 @@
#include "buffer.h"
#include "dsp.h"
#include "abrepeat.h"
+#include "tagcache.h"
#ifdef HAVE_LCD_BITMAP
#include "icons.h"
#include "peakmeter.h"
@@ -2132,8 +2133,8 @@ struct mp3entry* audio_current_track(void)
if (!filename)
filename = "No file!";
- // if (tagcache_fill_tags(&temp_id3, filename))
- // return &temp_id3;
+ if (tagcache_fill_tags(&temp_id3, filename))
+ return &temp_id3;
p = strrchr(filename, '/');
if (!p)
diff --git a/apps/tagcache.h b/apps/tagcache.h
index a405764..04125e1 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -59,7 +59,6 @@ struct tagcache_search {
long result_seek;
};
-bool tagcache_fill_tags(struct mp3entry *id3, const char *filename);
bool tagcache_search(struct tagcache_search *tcs, int tag);
bool tagcache_search_add_filter(struct tagcache_search *tcs,
int tag, int seek);
@@ -69,6 +68,7 @@ void tagcache_search_finish(struct tagcache_search *tcs);
int tagcache_get_progress(void);
#ifdef HAVE_TC_RAMCACHE
bool tagcache_is_ramcache(void);
+bool tagcache_fill_tags(struct mp3entry *id3, const char *filename);
#endif
void tagcache_init(void);
void tagcache_start_scan(void);