From b7251261de9de778e3e37b0fa66a533e5f066c0c Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 26 Mar 2006 16:37:18 +0000 Subject: Fill WPS tags from tagcache if available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9260 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 5 +++-- apps/tagcache.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/playback.c b/apps/playback.c index 00c4572720..4d86f0c55d 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 a405764644..04125e1d5e 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); -- cgit v1.2.3