summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-01-09 19:41:56 +0100
committerGravatar waker <wakeroid@gmail.com>2011-01-09 19:41:56 +0100
commit3aaf627d39bd957cf5d1382307c6ee1991fcbcc7 (patch)
tree592e60c1eeaefbfb8787fafe56802f08a21d7534 /playlist.c
parentd9b3f35a1f407f58e08adbf12b720f36702ece05 (diff)
copy all metadata when adding cue tracks
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 325332f4..499deb96 100644
--- a/playlist.c
+++ b/playlist.c
@@ -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;
}