summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h18
1 files changed, 18 insertions, 0 deletions
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;