diff options
Diffstat (limited to 'sources.c')
-rw-r--r-- | sources.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sources.c 3.3 2013/05/23 09:41:54 kls Exp $ + * $Id: sources.c 3.4 2013/05/23 10:20:28 kls Exp $ */ #include "sources.h" @@ -37,6 +37,13 @@ bool cSource::Parse(const char *s) return code != stNone && description && *description; } +bool cSource::Matches(int Code1, int Code2) +{ + if (Code1 == (stSat | st_Any)) + return IsSat(Code2); + return Code1 == Code2; +} + int cSource::Position(int Code) { int n = (Code & st_Pos); |