diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-03-10 13:17:11 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-03-10 13:17:11 +0100 |
commit | 76c32d60f99e40c96e5def5383ab58f6582b4b6b (patch) | |
tree | d3dd7904edf70e1fda00bdbbe4af98e46617d7f9 /channels.c | |
parent | ebdac2ddfcf810dac5305e74423b22a5e7a7848b (diff) | |
download | vdr-76c32d60f99e40c96e5def5383ab58f6582b4b6b.tar.gz vdr-76c32d60f99e40c96e5def5383ab58f6582b4b6b.tar.bz2 |
When checking for obsolete channels, those with an RID that is not 0 are now ignored
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 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.4 2014/01/04 15:01:52 kls Exp $ + * $Id: channels.c 3.5 2014/03/10 13:14:02 kls Exp $ */ #include "channels.h" @@ -1039,7 +1039,7 @@ cChannel *cChannels::NewChannel(const cChannel *Transponder, const char *Name, c void cChannels::MarkObsoleteChannels(int Source, int Nid, int Tid) { for (cChannel *channel = First(); channel; channel = Next(channel)) { - if (time(NULL) - channel->Seen() > CHANNELTIMEOBSOLETE && channel->Source() == Source && channel->Nid() == Nid && channel->Tid() == Tid) { + if (time(NULL) - channel->Seen() > CHANNELTIMEOBSOLETE && channel->Source() == Source && channel->Nid() == Nid && channel->Tid() == Tid && channel->Rid() == 0) { if (!endswith(channel->Name(), CHANNELMARKOBSOLETE)) channel->SetName(cString::sprintf("%s %s", channel->Name(), CHANNELMARKOBSOLETE), channel->ShortName(), cString::sprintf("%s %s", CHANNELMARKOBSOLETE, channel->Provider())); } |