From d10b54fc2e1a669146541a8d17f0a36b3e22a405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 10 Mar 2011 23:54:16 +0100 Subject: config: remove pointless cfg-mplayer-def.h file --- mplayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index b801999762..a9220797e0 100644 --- a/mplayer.c +++ b/mplayer.c @@ -67,8 +67,6 @@ #include "access_mpcontext.h" #include "m_property.h" -#include "cfg-mplayer-def.h" - #include "libavutil/avstring.h" #include "sub/subreader.h" @@ -879,6 +877,8 @@ static int cfg_include(m_option_t *conf, char *filename) return m_config_parse_config_file(conf->priv, filename); } +#define DEF_CONFIG "# Write your default config options here!\n\n\n" + static void parse_cfgfiles(struct MPContext *mpctx, m_config_t* conf) { struct MPOpts *opts = &mpctx->opts; @@ -901,7 +901,7 @@ if ((conffile = get_path("")) == NULL) { } else { if ((conffile_fd = open(conffile, O_CREAT | O_EXCL | O_WRONLY, 0666)) != -1) { mp_tmsg(MSGT_CPLAYER,MSGL_INFO,"Creating config file: %s\n", conffile); - write(conffile_fd, default_config, strlen(default_config)); + write(conffile_fd, DEF_CONFIG, sizeof(DEF_CONFIG) - 1); close(conffile_fd); } if (!(opts->noconfig & 1) && -- cgit v1.2.3