summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-14 09:34:39 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-26 16:34:42 +0200
commite8af22db818f839f5ac25a309e8838ea53e831b2 (patch)
tree5a7ecf9640d800f311ef3941be1641000608a49f /mp_core.h
parentf7643ddde624451b01f2cab688b733326b7b8ca5 (diff)
downloadmpv-e8af22db818f839f5ac25a309e8838ea53e831b2.tar.bz2
mpv-e8af22db818f839f5ac25a309e8838ea53e831b2.tar.xz
core: ordered chapters: move timeline creation to timeline/
Add new file timeline/tl_matroska.c. Move the code that parses ordered chapter information from Matroska files and creates the timeline structure based on that to the new file. Initialize the format parameter given to open_stream() in the moved code. The previous uninitialized value shouldn't have caused any visible effects.
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mp_core.h b/mp_core.h
index 825718f161..6f4d1d8557 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -251,4 +251,8 @@ char *chapter_display_name(struct MPContext *mpctx, int chapter);
void update_subtitles(struct MPContext *mpctx, double refpts,
double sub_offset, bool reset);
+
+// timeline/tl_matroska.c
+void build_ordered_chapter_timeline(struct MPContext *mpctx);
+
#endif /* MPLAYER_MP_CORE_H */