summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-04 15:11:13 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-04 15:11:13 +0100
commitaacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba (patch)
tree65f2ffd43cec60ff29ec46b1bf54bf6f809693ec /channels.c
parent761fb103b710db225eefa195dfd6f4387319b117 (diff)
downloadvdr-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index b0e24743..de655bec 100644
--- a/channels.c
+++ b/channels.c
@@ -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;
}
}
}