summaryrefslogtreecommitdiff
path: root/plmeta.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-04-30 17:12:25 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-04-30 17:12:25 +0200
commitf22b185ca45d8adacd3bd7c1b7541e141566bc21 (patch)
tree7c94b457c130af381d0c8a93ec66dc1dc639845c /plmeta.c
parent3e1ab26d8c88c5f420101a1e52cee52dfa0e3586 (diff)
fixed bug in pl_add_meta which was skipping some of the fields, especially when using pl_items_copy_junk
Diffstat (limited to 'plmeta.c')
-rw-r--r--plmeta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plmeta.c b/plmeta.c
index e93e280b..71ec2370 100644
--- a/plmeta.c
+++ b/plmeta.c
@@ -52,7 +52,7 @@ pl_add_meta (playItem_t *it, const char *key, const char *value) {
return;
}
// find end of normal metadata
- if (!normaltail && (m->key[0] == ':' || m->key[0] == '_' || m->key[0] == '!')) {
+ if (!normaltail && (!m->next || m->key[0] == ':' || m->key[0] == '_' || m->key[0] == '!')) {
normaltail = tail;
propstart = m;
if (key[0] != ':' && key[0] != '_' && key[0] != '!') {