diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-04 15:11:13 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-04 15:11:13 +0100 |
commit | aacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba (patch) | |
tree | 65f2ffd43cec60ff29ec46b1bf54bf6f809693ec /channels.c | |
parent | 761fb103b710db225eefa195dfd6f4387319b117 (diff) | |
download | vdr-aacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba.tar.gz vdr-aacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba.tar.bz2 |
Fixed multiple OBSOLETE marks in channels that are not listed in the SDT in case "Setup/Miscellaneous/Show channel names with source" is set to "yes"
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 5 |
1 files changed, 4 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.5 2014/03/10 13:14:02 kls Exp $ + * $Id: channels.c 3.6 2015/01/04 15:02:21 kls Exp $ */ #include "channels.h" @@ -1040,8 +1040,11 @@ 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 && channel->Rid() == 0) { + bool OldShowChannelNamesWithSource = Setup.ShowChannelNamesWithSource; + Setup.ShowChannelNamesWithSource = false; if (!endswith(channel->Name(), CHANNELMARKOBSOLETE)) channel->SetName(cString::sprintf("%s %s", channel->Name(), CHANNELMARKOBSOLETE), channel->ShortName(), cString::sprintf("%s %s", CHANNELMARKOBSOLETE, channel->Provider())); + Setup.ShowChannelNamesWithSource = OldShowChannelNamesWithSource; } } } |