summaryrefslogtreecommitdiffstats
path: root/demux/demux_cue.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux_cue.c')
-rw-r--r--demux/demux_cue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demux/demux_cue.c b/demux/demux_cue.c
index cbe06ca5cf..ed3d3d83f3 100644
--- a/demux/demux_cue.c
+++ b/demux/demux_cue.c
@@ -224,9 +224,10 @@ static void build_timeline(struct timeline *tl)
};
chapters[i] = (struct demux_chapter) {
.pts = timeline[i].start,
- // might want to include other metadata here
- .name = talloc_strdup(chapters, tracks[i].title),
+ .metadata = talloc_zero(tl, struct mp_tags),
};
+ // might want to include other metadata here
+ mp_tags_set_str(chapters[i].metadata, "title", tracks[i].title);
starttime += duration;
}