diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-05 22:06:49 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-05 22:06:49 +0200 |
commit | 0b207476b362f6453fec73432416268317454425 (patch) | |
tree | fbbd242d66a5bd28405b32c1dc10d19eabb9cb67 /playlist.c | |
parent | a0565f661fdacfd50f543bc2bee085fd06860a24 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |