diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-03-13 12:12:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-03-13 12:12:33 +0100 |
commit | 70eb639c417b46bc7bac205069feb755e9ade96e (patch) | |
tree | fe63cb23abdbcb1a5ae104f779dafde7f05fcf87 /channels.c | |
parent | 52b1e2a9ff81edd447de9d721f3df86f8380bc78 (diff) | |
download | vdr-70eb639c417b46bc7bac205069feb755e9ade96e.tar.gz vdr-70eb639c417b46bc7bac205069feb755e9ade96e.tar.bz2 |
Fixed setting the source value of newly created channels, in case the NIT is received from a different, but very close satellite position
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 3.8 2015/02/01 13:47:05 kls Exp $ + * $Id: channels.c 4.1 2015/03/13 11:34:28 kls Exp $ */ #include "channels.h" @@ -229,6 +229,18 @@ bool cChannel::SetTransponderData(int Source, int Frequency, int Srate, const ch return true; } +void cChannel::SetSource(int Source) +{ + if (source != Source) { + if (Number()) { + dsyslog("changing source of channel %d (%s) from %s to %s", Number(), name, *cSource::ToString(source), *cSource::ToString(Source)); + modification |= CHANNELMOD_TRANSP; + Channels.SetModified(); + } + source = Source; + } +} + void cChannel::SetId(int Nid, int Tid, int Sid, int Rid) { if (nid != Nid || tid != Tid || sid != Sid || rid != Rid) { |