summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-05 21:50:37 +0100
committerwm4 <wm4@nowhere>2016-02-05 23:17:27 +0100
commit8af70561a419c5a4a9926f9e60381dc4282a3fd9 (patch)
treecbf0fc3ef42ada34a744c95c94746786a5894cb8 /player/core.h
parent242dbc6c2c985bfd4dd8df699c6df6c33f8889d1 (diff)
downloadmpv-8af70561a419c5a4a9926f9e60381dc4282a3fd9.tar.bz2
mpv-8af70561a419c5a4a9926f9e60381dc4282a3fd9.tar.xz
player: move audio and video decoder init to separate functions
Preparation.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index 90ceeb1d08..df79dd8c01 100644
--- a/player/core.h
+++ b/player/core.h
@@ -429,6 +429,7 @@ typedef struct MPContext {
// audio.c
void reset_audio_state(struct MPContext *mpctx);
void reinit_audio_chain(struct MPContext *mpctx);
+int init_audio_decoder(struct MPContext *mpctx, struct track *track);
int reinit_audio_filters(struct MPContext *mpctx);
double playing_audio_pts(struct MPContext *mpctx);
void fill_audio_out_buffers(struct MPContext *mpctx, double endpts);
@@ -555,6 +556,7 @@ int video_get_colors(struct vo_chain *vo_c, const char *item, int *value);
int video_set_colors(struct vo_chain *vo_c, const char *item, int value);
int video_vf_vo_control(struct vo_chain *vo_c, int vf_cmd, void *data);
void reset_video_state(struct MPContext *mpctx);
+int init_video_decoder(struct MPContext *mpctx, struct track *track);
int reinit_video_chain(struct MPContext *mpctx);
int reinit_video_filters(struct MPContext *mpctx);
void write_video(struct MPContext *mpctx, double endpts);