search channels.conf in mplayer's instdir if all other searches fail; patch by foxcore gmail com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26155 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2008-03-03 22:28:07 +00:00
parent db9f691b6c
commit b867e95584
1 changed files with 6 additions and 0 deletions

View File

@ -815,6 +815,12 @@ dvb_config_t *dvb_get_config(void)
if(conf_file) if(conf_file)
free(conf_file); free(conf_file);
conf_file = get_path("channels.conf"); conf_file = get_path("channels.conf");
if((access(conf_file, F_OK | R_OK) != 0))
{
if(conf_file)
free(conf_file);
conf_file = strdup(MPLAYER_CONFDIR "/channels.conf");
}
} }
list = dvb_get_channels(conf_file, type); list = dvb_get_channels(conf_file, type);