diff options
author | wm4 <wm4@nowhere> | 2018-01-02 13:35:02 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-02 15:02:03 -0800 |
commit | 08bcf1d92da0ef19499c064cb8bc1b0cb64e5f10 (patch) | |
tree | a9f0eef16619c233598dac330fa49502f8c1d24f | |
parent | 722f9b63c20918cb8f503b65e6bcafcc303e355c (diff) | |
download | mpv-08bcf1d92da0ef19499c064cb8bc1b0cb64e5f10.tar.bz2 mpv-08bcf1d92da0ef19499c064cb8bc1b0cb64e5f10.tar.xz |
client API: be more explicit about how to make libmpv use config files
-rw-r--r-- | libmpv/client.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmpv/client.h b/libmpv/client.h index 77e7ce09a4..91a8e81cbb 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -385,10 +385,14 @@ const char *mpv_client_name(mpv_handle *ctx); * equivalent to setting the --no-terminal option. * (Technically, this also suppresses C signal handling.) * - No config files will be loaded. This is roughly equivalent to using - * --no-config. Since libmpv 1.15, you can actually re-enable this option, + * --config=no. Since libmpv 1.15, you can actually re-enable this option, * which will make libmpv load config files during mpv_initialize(). If you * do this, you are strongly encouraged to set the "config-dir" option too. * (Otherwise it will load the mpv command line player's config.) + * For example: + * mpv_set_option_string(mpv, "config-dir", "/my/path"); // set config root + * mpv_set_option_string(mpv, "config", "yes"); // enable config loading + * (call mpv_initialize() _after_ this) * - Idle mode is enabled, which means the playback core will enter idle mode * if there are no more files to play on the internal playlist, instead of * exiting. This is equivalent to the --idle option. |