diff options
author | waker <wakeroid@gmail.com> | 2011-01-09 19:41:56 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-01-09 19:41:56 +0100 |
commit | 3aaf627d39bd957cf5d1382307c6ee1991fcbcc7 (patch) | |
tree | 592e60c1eeaefbfb8787fafe56802f08a21d7534 /playlist.c | |
parent | d9b3f35a1f407f58e08adbf12b720f36702ece05 (diff) |
copy all metadata when adding cue tracks
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -3369,6 +3369,19 @@ pl_playqueue_getcount (void) { void pl_items_copy_junk (playItem_t *from, playItem_t *first, playItem_t *last) { LOCK; + DB_metaInfo_t *meta = from->meta; + while (meta) { + playItem_t *i; + for (i = first; ; i = i->next[PL_MAIN]) { + i->_flags = from->_flags; + pl_add_meta (i, meta->key, meta->value); + if (i == last) { + break; + } + } + meta = meta->next; + } +#if 0 const char *metainfo[] = { "year", "genre", "copyright", "vendor", "comment", "tags", "numtracks", "band", "performer", "composer", "disc", "title", "artist", "album", NULL }; @@ -3385,6 +3398,7 @@ pl_items_copy_junk (playItem_t *from, playItem_t *first, playItem_t *last) { } } } +#endif UNLOCK; } |