From 58497380e5222749892414089d26916095c0485c Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 29 Mar 2009 22:45:06 +0300 Subject: Initial ordered chapters support Add basic support for Matroska ordered chapters. The switching between segments is implemented as a general edit timeline that could also be used for other purposes. Some things still need improvement. In particular the current code does not try to do any proper mapping between audio/video/subtitle streams of different files and there should be options for better control of how MPlayer searches other files for the required content. --- mp_core.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mp_core.h') diff --git a/mp_core.h b/mp_core.h index 13c8f149f0..6b7719b7f3 100644 --- a/mp_core.h +++ b/mp_core.h @@ -47,6 +47,17 @@ typedef enum { EXIT_ERROR } exit_reason_t; +struct content_source { + struct stream *stream; + struct demuxer *demuxer; +}; + +struct timeline_part { + double start; + double source_start; + struct content_source *source; +}; + typedef struct MPContext { struct MPOpts opts; struct m_config *mconfig; @@ -69,6 +80,13 @@ typedef struct MPContext { int play_tree_step; unsigned int initialized_flags; // which subsystems have been initialized + struct content_source *sources; + int num_sources; + struct timeline_part *timeline; + int num_timeline_parts; + int timeline_part; + double video_offset; + struct stream *stream; struct demuxer *demuxer; struct sh_audio *sh_audio; -- cgit v1.2.3