From e823560ec53c7209f278fa331b2c0d227ca5529e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 9 Mar 2014 12:15:08 +0100 Subject: Fixed adding new source types in case they are already registered --- sourceparams.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sourceparams.c') diff --git a/sourceparams.c b/sourceparams.c index 04317895..6d85f86c 100644 --- a/sourceparams.c +++ b/sourceparams.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sourceparams.c 1.2 2010/03/06 11:13:39 kls Exp $ + * $Id: sourceparams.c 1.2.1.1 2014/03/09 12:13:18 kls Exp $ */ #include "sourceparams.h" @@ -21,8 +21,8 @@ cSourceParam::cSourceParam(char Source, const char *Description) return; } SourceParams.Add(this); - if (!strchr("ACST", Source)) // no, it's not "ATSC" ;-) - Sources.Add(new cSource(Source, Description)); + if (!Sources.ContainsSourceType(source)) + Sources.Add(new cSource(source, Description)); dsyslog("registered source parameters for '%c - %s'", source, Description); } else -- cgit v1.2.3