summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-01 13:49:10 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-01 13:49:10 +0100
commit1c4865147a01aec70fe6b8d1d4b5bd071c431cff (patch)
tree1539d779750086e0854e4b132da8e5a13089d499 /channels.c
parentb3bc711ed2419df537d5e84baa5546ac80c7a666 (diff)
downloadvdr-1c4865147a01aec70fe6b8d1d4b5bd071c431cff.tar.gz
vdr-1c4865147a01aec70fe6b8d1d4b5bd071c431cff.tar.bz2
Added support for LCN (Logical Channel Numbers)2.1.8
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index b91df6dc..564088f4 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.7 2015/01/14 12:15:03 kls Exp $
+ * $Id: channels.c 3.8 2015/02/01 13:47:05 kls Exp $
*/
#include "channels.h"
@@ -248,6 +248,15 @@ void cChannel::SetId(int Nid, int Tid, int Sid, int Rid)
}
}
+void cChannel::SetLcn(int Lcn)
+{
+ if (lcn != Lcn) {
+ if (Number())
+ dsyslog("changing lcn of channel %d (%s) from %d to %d\n", Number(), name, lcn, Lcn);
+ lcn = Lcn;
+ }
+}
+
void cChannel::SetName(const char *Name, const char *ShortName, const char *Provider)
{
if (!isempty(Name)) {