From 2b0c620b22a85d73f2b39049ed92d9300ff194d9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Sep 2016 13:45:23 +0200 Subject: 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.) --- player/main.c | 54 ++++-------------------------------------------------- 1 file changed, 4 insertions(+), 50 deletions(-) (limited to 'player/main.c') 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 #endif @@ -99,56 +103,6 @@ const char mp_help_text[] = " --h= 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; -- cgit v1.2.3