diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-03-26 16:37:18 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-03-26 16:37:18 +0000 |
commit | b7251261de9de778e3e37b0fa66a533e5f066c0c (patch) | |
tree | 7640d283fa4a1b626868e91db3e9982314881107 | |
parent | d1f9495c832b9c1121baccd7d5a3ccdcdfe2b96c (diff) | |
download | rockbox-b7251261de9de778e3e37b0fa66a533e5f066c0c.tar.gz rockbox-b7251261de9de778e3e37b0fa66a533e5f066c0c.zip |
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.c | 5 | ||||
-rw-r--r-- | 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 @@ | |||
50 | #include "buffer.h" | 50 | #include "buffer.h" |
51 | #include "dsp.h" | 51 | #include "dsp.h" |
52 | #include "abrepeat.h" | 52 | #include "abrepeat.h" |
53 | #include "tagcache.h" | ||
53 | #ifdef HAVE_LCD_BITMAP | 54 | #ifdef HAVE_LCD_BITMAP |
54 | #include "icons.h" | 55 | #include "icons.h" |
55 | #include "peakmeter.h" | 56 | #include "peakmeter.h" |
@@ -2132,8 +2133,8 @@ struct mp3entry* audio_current_track(void) | |||
2132 | if (!filename) | 2133 | if (!filename) |
2133 | filename = "No file!"; | 2134 | filename = "No file!"; |
2134 | 2135 | ||
2135 | // if (tagcache_fill_tags(&temp_id3, filename)) | 2136 | if (tagcache_fill_tags(&temp_id3, filename)) |
2136 | // return &temp_id3; | 2137 | return &temp_id3; |
2137 | 2138 | ||
2138 | p = strrchr(filename, '/'); | 2139 | p = strrchr(filename, '/'); |
2139 | if (!p) | 2140 | 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 { | |||
59 | long result_seek; | 59 | long result_seek; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | bool tagcache_fill_tags(struct mp3entry *id3, const char *filename); | ||
63 | bool tagcache_search(struct tagcache_search *tcs, int tag); | 62 | bool tagcache_search(struct tagcache_search *tcs, int tag); |
64 | bool tagcache_search_add_filter(struct tagcache_search *tcs, | 63 | bool tagcache_search_add_filter(struct tagcache_search *tcs, |
65 | int tag, int seek); | 64 | int tag, int seek); |
@@ -69,6 +68,7 @@ void tagcache_search_finish(struct tagcache_search *tcs); | |||
69 | int tagcache_get_progress(void); | 68 | int tagcache_get_progress(void); |
70 | #ifdef HAVE_TC_RAMCACHE | 69 | #ifdef HAVE_TC_RAMCACHE |
71 | bool tagcache_is_ramcache(void); | 70 | bool tagcache_is_ramcache(void); |
71 | bool tagcache_fill_tags(struct mp3entry *id3, const char *filename); | ||
72 | #endif | 72 | #endif |
73 | void tagcache_init(void); | 73 | void tagcache_init(void); |
74 | void tagcache_start_scan(void); | 74 | void tagcache_start_scan(void); |