summaryrefslogtreecommitdiff
path: root/apps/metadata/metadata_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r--apps/metadata/metadata_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c
index e1ef9a0d62..4f001775f3 100644
--- a/apps/metadata/metadata_common.c
+++ b/apps/metadata/metadata_common.c
@@ -337,7 +337,10 @@ long parse_tag(const char* name, char* value, struct mp3entry* id3,
337 p = NULL; 337 p = NULL;
338 } 338 }
339 339
340 if (p) 340 /* Do not overwrite already available metadata. Especially when reading
341 * tags with e.g. multiple genres / artists. This way only the first
342 * of multiple entries is used, all following are dropped. */
343 if (p!=NULL && *p==NULL)
341 { 344 {
342 len = strlen(value); 345 len = strlen(value);
343 len = MIN(len, buf_remaining - 1); 346 len = MIN(len, buf_remaining - 1);