summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-11-13 14:17:58 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-11-13 14:17:58 +0000
commita9cbb5fe22069787eead020f15f06574a178d44f (patch)
treecfcfd5356e692ec08cff0dc6b0172f5349d90af1
parent12d4e44e91333056cf23174353bbc718f01248d5 (diff)
downloadxine-lib-a9cbb5fe22069787eead020f15f06574a178d44f.tar.gz
xine-lib-a9cbb5fe22069787eead020f15f06574a178d44f.tar.bz2
Improve the "no channels.conf" message; tidy up local variable initialisation.
-rw-r--r--src/input/input_dvb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index da3ef73eb..14d109734 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -3182,20 +3182,19 @@ static char **dvb_class_get_autoplay_list(input_class_t * this_gen,
dvb_input_class_t *class = (dvb_input_class_t *) this_gen;
channel_t *channels=NULL;
char foobuffer[BUFSIZE];
- int ch, apch, num_channels;
+ int ch, apch, num_channels = 0;
int default_channel = -1;
xine_cfg_entry_t lastchannel_enable = {0};
xine_cfg_entry_t lastchannel;
- num_channels = 0;
-
if (!(channels = load_channels(class->xine, NULL, &num_channels, 0))) {
/* channels.conf not found in .xine */
- class->mrls[0]="Sorry, No channels.conf found";
- class->mrls[1]="Please run the dvbscan utility";
- class->mrls[2]="from the dvb drivers apps package";
- class->mrls[3]="and place the file in ~/.xine/";
- *num_files=4;
+ class->mrls[0]="Sorry, No valid channels.conf found";
+ class->mrls[1]="for the selected DVB device.";
+ class->mrls[2]="Please run the dvbscan utility";
+ class->mrls[3]="from the dvb drivers apps package";
+ class->mrls[4]="and place the file in ~/.xine/";
+ *num_files=5;
return class->mrls;
}