summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-04 16:06:35 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-04 16:06:35 +0200
commitf9deb99d0787de87cfe36cdab3f0cfd1aea53535 (patch)
tree83b9ce47e698b62348a26369a0a2429382d4e850 /junklib.c
parent251bfdb90e02170019366eacf8eb295350a4bdc4 (diff)
don't append empty id3v2 text frames
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/junklib.c b/junklib.c
index d4eb1278..34bdfbe3 100644
--- a/junklib.c
+++ b/junklib.c
@@ -2545,7 +2545,7 @@ junk_id3v2_read_full (playItem_t *it, DB_id3v2_tag_t *tag_store, DB_FILE *fp) {
break;
}
char *text = convstr_id3v2 (version_major, readptr[0], readptr+1, synched_size-1);
- if (text && text_holders[f]) {
+ if (text && *text && text_holders[f]) {
if (*text_holders[f]) {
// append
char *new = junk_append_meta (*text_holders[f], text);
@@ -2647,7 +2647,7 @@ junk_id3v2_read_full (playItem_t *it, DB_id3v2_tag_t *tag_store, DB_FILE *fp) {
break;
}
char *text = convstr_id3v2 (version_major, readptr[0], readptr+1, synched_size-1);
- if (text && text_holders[f]) {
+ if (text && *text && text_holders[f]) {
if (*text_holders[f]) {
// append
char *new = junk_append_meta (*text_holders[f], text);