diff options
author | Max Kellermann <max@duempel.org> | 2012-02-12 18:19:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-12 18:29:05 +0100 |
commit | 4b36af4a349fb8840b0bb3a9fb30552abbac663f (patch) | |
tree | 3928f75ca8b1e8f915f72c958332f13b8a710f25 /src/tag.c | |
parent | 4a23a4bfee5c7b213da4f72ae858ab69840ccbdc (diff) | |
download | mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.tar.gz mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.tar.xz mpd-4b36af4a349fb8840b0bb3a9fb30552abbac663f.zip |
tag: add attribute "has_playlist"
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -158,6 +158,7 @@ struct tag *tag_new(void) struct tag *ret = g_new(struct tag, 1); ret->items = NULL; ret->time = -1; + ret->has_playlist = false; ret->num_items = 0; return ret; } @@ -226,6 +227,7 @@ struct tag *tag_dup(const struct tag *tag) ret = tag_new(); ret->time = tag->time; + ret->has_playlist = tag->has_playlist; ret->num_items = tag->num_items; ret->items = ret->num_items > 0 ? g_malloc(items_size(tag)) : NULL; |