diff options
author | wm4 <wm4@nowhere> | 2016-09-15 13:45:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-15 14:50:38 +0200 |
commit | 2b0c620b22a85d73f2b39049ed92d9300ff194d9 (patch) | |
tree | 11ce4ef28374daf6d3b5473583ac91f82597c7a2 /player | |
parent | 98f1b5fb9859a7f19d71137a3feae5f0c6031e78 (diff) | |
download | mpv-2b0c620b22a85d73f2b39049ed92d9300ff194d9.tar.bz2 mpv-2b0c620b22a85d73f2b39049ed92d9300ff194d9.tar.xz |
player: move builtin profiles to a separate file
Move the embedded string with the builtin profiles to a separate
builtin.conf file. This makes it easier to read and edit, and you can
also check it for errors with --include=etc/builtin.conf. (Normally
errors are hidden intentionally, because there's no way to output error
messages this early, and because some options might not be present on
all platforms or with all configurations.)
Diffstat (limited to 'player')
-rw-r--r-- | player/main.c | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/player/main.c b/player/main.c index 8beb4f8b9a..b3a08082d8 100644 --- a/player/main.c +++ b/player/main.c @@ -62,6 +62,10 @@ #include "command.h" #include "screenshot.h" +static const char def_config[] = +#include "player/builtin_conf.inc" +; + #ifdef _WIN32 #include <windows.h> #endif @@ -99,56 +103,6 @@ const char mp_help_text[] = " --h=<pat> print options which match the given shell pattern\n" "\n"; -static const char def_config[] = -#if HAVE_RPI - "hwdec=rpi\n" - "fullscreen=yes\n" -#endif - "\n" - "[pseudo-gui]\n" - "terminal=no\n" - "force-window=yes\n" - "idle=once\n" - "screenshot-directory=~~desktop/\n" - "\n" - "[libmpv]\n" - "config=no\n" - "idle=yes\n" - "terminal=no\n" - "input-terminal=no\n" - "osc=no\n" - "ytdl=no\n" - "input-default-bindings=no\n" - "input-vo-keyboard=no\n" - "input-lirc=no\n" - "input-appleremote=no\n" - "input-media-keys=no\n" - "input-app-events=no\n" - "stop-playback-on-init-failure=yes\n" -#if HAVE_ENCODING - "\n" - "[encoding]\n" - "vo=lavc\n" - "ao=lavc\n" - "keep-open=no\n" - "force-window=no\n" - "gapless-audio=yes\n" - "resume-playback=no\n" - "load-scripts=no\n" - "osc=no\n" - "framedrop=no\n" -#endif - "\n" - "[opengl-hq]\n" - "scale=spline36\n" - "cscale=spline36\n" - "dscale=mitchell\n" - "dither-depth=auto\n" - "correct-downscaling=yes\n" - "sigmoid-upscaling=yes\n" - "deband=yes\n" -; - static pthread_mutex_t terminal_owner_lock = PTHREAD_MUTEX_INITIALIZER; static struct MPContext *terminal_owner; |