mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
metadata.c get_metadata_ex add flag METADATA_EXCLUDE_NORMALIZE
no need to normalize data you don't intend to use Change-Id: Ieef5474fef47b2f96db3d02875db95a1de02eb5e
This commit is contained in:
parent
949a99a24d
commit
22b4cd3232
2 changed files with 4 additions and 3 deletions
|
|
@ -475,7 +475,7 @@ bool get_metadata_ex(struct mp3entry* id3, int fd, const char* trackname, int fl
|
|||
}
|
||||
|
||||
#ifdef UTF8PROC_EXPORTS
|
||||
if (success) {
|
||||
if (success && (flags & METADATA_EXCLUDE_NORMALIZE) == 0) {
|
||||
utf8_normalize(id3->title);
|
||||
utf8_normalize(id3->artist);
|
||||
utf8_normalize(id3->album);
|
||||
|
|
|
|||
|
|
@ -23,8 +23,9 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#define METADATA_EXCLUDE_ID3_PATH (0x01) /* don't copy filename path to the id3 path buffer */
|
||||
#define METADATA_CLOSE_FD_ON_EXIT (0x02) /* close the filedescriptor when finished */
|
||||
#define METADATA_EXCLUDE_ID3_PATH (0x01) /* don't copy filename path to the id3 path buffer */
|
||||
#define METADATA_CLOSE_FD_ON_EXIT (0x02) /* close the filedescriptor when finished */
|
||||
#define METADATA_EXCLUDE_NORMALIZE (0x04) /* don't normalize id3 text entries */
|
||||
/* Audio file types. */
|
||||
/* NOTE: The values of the AFMT_* items are used for the %fc tag in the WPS
|
||||
- so new entries MUST be added to the end to maintain compatibility.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue