From 2e266391559c2aa867c24593325f07effba97c64 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 5 Mar 2015 11:17:22 +0100 Subject: player, client API: refactor cplayer init, reduce client API differences Move the command line parsing and some other things to the common init routine shared between command line player and client API. This means they're using almost exactly the same code now. The main intended side effect is that the client API will load mpv.conf; though still only if config loading is enabled. (The cplayer still avoids creating an extra thread, passes a command line, and prints an exit status to the terminal. It also has some different defaults.) --- player/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index 7a65270abc..c995c8ab19 100644 --- a/player/core.h +++ b/player/core.h @@ -404,7 +404,7 @@ struct track *select_track(struct MPContext *mpctx, enum stream_type type, // main.c int mpv_main(int argc, char *argv[]); -int mp_initialize(struct MPContext *mpctx); +int mp_initialize(struct MPContext *mpctx, char **argv); struct MPContext *mp_create(void); void mp_destroy(struct MPContext *mpctx); void mp_print_version(struct mp_log *log, int always); -- cgit v1.2.3