mirror of https://github.com/mpv-player/mpv
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:
parent
db9f691b6c
commit
b867e95584
|
@ -815,6 +815,12 @@ dvb_config_t *dvb_get_config(void)
|
|||
if(conf_file)
|
||||
free(conf_file);
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue