diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-04-02 05:00:22 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-04-02 06:51:26 +0300 |
commit | 2d91b19956c7d444ba440078e1c2ecd23d207a87 (patch) | |
tree | 27e0cac3e0f6ab3286ab6ec221ab763605113734 /libmpdemux | |
parent | f12c83b85b135c1cb9fb34e978eb0c8051450da8 (diff) | |
download | mpv-2d91b19956c7d444ba440078e1c2ecd23d207a87.tar.bz2 mpv-2d91b19956c7d444ba440078e1c2ecd23d207a87.tar.xz |
Support chapter seeking with ordered chapters
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 1 | ||||
-rw-r--r-- | libmpdemux/demuxer.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index f98a2d0645..e9853bc3e4 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -1170,6 +1170,7 @@ static uint64_t read_one_chapter(struct demuxer *demuxer, stream_t *s) m->num_ordered_chapters + 1); chapter.start = start; chapter.end = end; + chapter.name = talloc_strdup(m->ordered_chapters, name); // Will be undone later if this is a normal chapter rather than ordered m->ordered_chapters[m->num_ordered_chapters] = chapter; m->num_ordered_chapters++; diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h index 6df2564e24..544afe8add 100644 --- a/libmpdemux/demuxer.h +++ b/libmpdemux/demuxer.h @@ -198,6 +198,7 @@ struct matroska_data { uint64_t end; bool has_segment_uid; unsigned char segment_uid[16]; + char *name; } *ordered_chapters; int num_ordered_chapters; }; |