forked from len0rd/rockbox
plugins: Remove id3 lib
only remaining user is PictureFlow, and function is arguably not lib-worthy at this point Change-Id: If5cff56fc4aed7c8029782a7087ba4cfef3ec4ea
This commit is contained in:
parent
de8d1437dc
commit
5e66f0e762
4 changed files with 18 additions and 68 deletions
|
@ -33,7 +33,6 @@
|
|||
#include "lib/grey.h"
|
||||
#include "lib/mylcd.h"
|
||||
#include "lib/feature_wrappers.h"
|
||||
#include "lib/id3.h"
|
||||
|
||||
/******************************* Globals ***********************************/
|
||||
static fb_data *lcd_fb;
|
||||
|
@ -2076,6 +2075,24 @@ static inline void free_borrowed_tracks(void)
|
|||
buf_ctx_unlock();
|
||||
}
|
||||
|
||||
/* Fills mp3entry with metadata retrieved from RAM, if possible, or by reading from
|
||||
* the file directly. Note that the tagcache only stores a subset of metadata and
|
||||
* will thus not return certain properties of the file, such as frequency, size, or
|
||||
* codec.
|
||||
*/
|
||||
bool retrieve_id3(struct mp3entry *id3, const char* file)
|
||||
{
|
||||
#if defined (HAVE_TAGCACHE) && defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||
if (rb->tagcache_fill_tags(id3, file))
|
||||
{
|
||||
rb->strlcpy(id3->path, file, sizeof(id3->path));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
return rb->get_metadata(id3, -1, file);
|
||||
}
|
||||
|
||||
/**
|
||||
Determine filename of the album art for the given slide_index and
|
||||
store the result in buf.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue