summaryrefslogtreecommitdiff
path: root/sourceparams.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-09 12:11:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-09 12:11:32 +0100
commita9f1297022319c97e16f6d904254a6d0bae4442e (patch)
tree55347962328500afc784946c5e965b0c02871b10 /sourceparams.c
parentf8058586f9d438bfd3c501a3a313a1cc1c30299b (diff)
downloadvdr-a9f1297022319c97e16f6d904254a6d0bae4442e.tar.gz
vdr-a9f1297022319c97e16f6d904254a6d0bae4442e.tar.bz2
Fixed adding new source types in case they are already registered
Diffstat (limited to 'sourceparams.c')
-rw-r--r--sourceparams.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sourceparams.c b/sourceparams.c
index 04317895..3eec406a 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 3.1 2014/03/09 12:03:09 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