summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/input_dvb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index 72aa63858..198efcbd2 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -671,7 +671,12 @@ static int extract_channel_from_string(channel_t * channel,char * str,fe_type_t
if (!(field = strsep(&tmp, ":")))
return -1;
channel->service_id = strtoul(field, NULL, 0);
-
+
+ /* some channel.conf files are generated with the service ID 1 to the right
+ this needs investigation */
+ if ((field = strsep(&tmp, ":")))
+ if(strtoul(field,NULL,0)>0)
+ channel->service_id = strtoul(field, NULL, 0);
return 0;
}