mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The actual transponder data is now taken from the NIT
This commit is contained in:
13
sources.c
13
sources.c
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: sources.c 1.1 2002/10/06 09:27:10 kls Exp $
|
||||
* $Id: sources.c 1.2 2004/01/11 10:36:57 kls Exp $
|
||||
*/
|
||||
|
||||
#include "sources.h"
|
||||
@@ -90,6 +90,17 @@ int cSource::FromString(const char *s)
|
||||
return code;
|
||||
}
|
||||
|
||||
int cSource::FromData(eSourceType SourceType, int Position, bool East)
|
||||
{
|
||||
int code = SourceType;
|
||||
if (SourceType == stSat) {
|
||||
if (East)
|
||||
code |= st_Neg;
|
||||
code |= (Position & st_Pos);;
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
// -- cSources ---------------------------------------------------------------
|
||||
|
||||
cSources Sources;
|
||||
|
Reference in New Issue
Block a user