summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-19 19:54:54 +0200
committerwm4 <wm4@nowhere>2016-09-19 19:54:54 +0200
commitb62634c051e5657d60394a10d7ae8a8707f3bcc7 (patch)
tree8d8bbb946d3fdcbcc307fa5e1660e657475ee895 /player/core.h
parent75fe626aa60a4175c5b833ab8afe271120d88106 (diff)
downloadmpv-b62634c051e5657d60394a10d7ae8a8707f3bcc7.tar.bz2
mpv-b62634c051e5657d60394a10d7ae8a8707f3bcc7.tar.xz
player: make --terminal freetly settable at runtime
So client API users don't have to care about whether to set this before or after mpv_initialize(). We still don't enable terminal at any point before mpv_initialize(), because reasons. This also subtly changes some behavior how terminal options are applied while parsing. This essentially reverts the behavior as it was reported in issue #2588. Originally, I was hoping to get rid of the pre-parse option pass, but it seems this is absolutely not possible due to the way config and command line parsing are entangled. Command line options take priority over configfile options, so they have to be applied later - but we also want to apply logging and terminal options as specified on the command-line, but _before_ parsing the config files. It has to be this way to see config file error messages on the terminal, or to hide them if --no-terminal is used. libmpv considerations also factor into this.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index 22e19e49ef..c36972e807 100644
--- a/player/core.h
+++ b/player/core.h
@@ -487,6 +487,7 @@ struct MPContext *mp_create(void);
void mp_destroy(struct MPContext *mpctx);
void mp_print_version(struct mp_log *log, int always);
void wakeup_playloop(void *ctx);
+void mp_update_logging(struct MPContext *mpctx);
// misc.c
double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t);