From 936fecca520b0c953d6a4c1bd7826cb98add0815 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 10 May 2004 13:38:39 +0000 Subject: fix compilation breakage before Mike kills me ;-) CVS patchset: 6515 CVS date: 2004/05/10 13:38:39 --- src/input/input_dvb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input/input_dvb.c') diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index 9285a1593..41bbc9e27 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -997,11 +997,11 @@ static int dvb_plugin_open (input_plugin_t *this_gen) { if(*channame) { /* try to find the specified channel */ + int idx = 0; xprintf (this->class->xine, XINE_VERBOSITY_LOG, _("input_dvb: searching for channel %s\n"),channame); - int idx = 0; while(idx < num_channels) { if(strcasecmp(channels[idx].name,channame) == 0)break; @@ -1020,12 +1020,12 @@ static int dvb_plugin_open (input_plugin_t *this_gen) { * that the channels have really ugly names, sometimes prefixed * by numbers... */ + int chanlen = strlen(channame); + int offset = 0; xprintf (this->class->xine, XINE_VERBOSITY_LOG, _("input_dvb: exact match for %s not found: trying partial matches\n"),channame); - int chanlen = strlen(channame); - int offset = 0; do { idx = 0; while(idx < num_channels) -- cgit v1.2.3