diff stream/stream_dvb.c @ 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 39709e0bdbf4
children b2cc442c095d
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);