mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
Add support for system wide config file in mencoder.
Patch by Andrew Savchenko (Bircoph -at- list -dot- ru). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26447 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c9e6af5949
commit
c439e8b468
@ -311,6 +311,9 @@ static void mencoder_exit(int level, const char *how)
|
||||
static void parse_cfgfiles( m_config_t* conf )
|
||||
{
|
||||
char *conffile;
|
||||
if (m_config_parse_config_file(conf, MPLAYER_CONFDIR "/mencoder.conf") < 0)
|
||||
mencoder_exit(1,MSGTR_ConfigFileError);
|
||||
|
||||
if ((conffile = get_path("mencoder.conf")) == NULL) {
|
||||
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_GetpathProblem);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user