changeset 26123:37786c8469b2

search channels.conf in mplayer's instdir if all other searches fail; patch by foxcore gmail com
author nicodvb
date Mon, 03 Mar 2008 22:28:07 +0000
parents 7d74f109704b
children 57b8407b9047
files stream/stream_dvb.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvb.c	Mon Mar 03 19:40:39 2008 +0000
+++ b/stream/stream_dvb.c	Mon Mar 03 22:28:07 2008 +0000
@@ -815,6 +815,12 @@
 			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);