diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-02-01 13:49:10 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-02-01 13:49:10 +0100 |
commit | 1c4865147a01aec70fe6b8d1d4b5bd071c431cff (patch) | |
tree | 1539d779750086e0854e4b132da8e5a13089d499 /channels.c | |
parent | b3bc711ed2419df537d5e84baa5546ac80c7a666 (diff) | |
download | vdr-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.c | 11 |
1 files changed, 10 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.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)) { |