summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-05 22:06:49 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-05 22:06:49 +0200
commit0b207476b362f6453fec73432416268317454425 (patch)
treefbbd242d66a5bd28405b32c1dc10d19eabb9cb67 /playlist.c
parenta0565f661fdacfd50f543bc2bee085fd06860a24 (diff)
copy tags frame from origin track into all cue tracks;
add cuesheet tag type to tags list of all cue tracks
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 09e656f0..abaa4d7d 100644
--- a/playlist.c
+++ b/playlist.c
@@ -779,6 +779,7 @@ pl_insert_cue_from_buffer (playItem_t *after, playItem_t *origin, const uint8_t
}
// copy metadata from embedded tags
playItem_t *first = ins ? ins->next[PL_MAIN] : playlist->head[PL_MAIN];
+ pl_append_meta (origin, "tags", "cuesheet");
pl_items_copy_junk (origin, first, after);
UNLOCK;
return after;
@@ -2758,6 +2759,7 @@ pl_items_copy_junk (playItem_t *from, playItem_t *first, playItem_t *last) {
const char *copyright = pl_find_meta (from, "copyright");
const char *vendor = pl_find_meta (from, "vendor");
const char *comment = pl_find_meta (from, "comment");
+ const char *tags = pl_find_meta (from, "tags");
playItem_t *i;
for (i = first; i; i = i->next[PL_MAIN]) {
if (year) {
@@ -2775,6 +2777,9 @@ pl_items_copy_junk (playItem_t *from, playItem_t *first, playItem_t *last) {
if (comment) {
pl_add_meta (i, "comment", comment);
}
+ if (tags) {
+ pl_add_meta (i, "tags", tags);
+ }
if (i == last) {
break;
}