diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-21 15:05:20 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-21 15:05:20 +0200 |
commit | a1663a36125cd7b73162104aecd619653c625cc5 (patch) | |
tree | ac9337c2ba04b5f6e81d4bfce7c562f8b6de1bb4 /channels.c | |
parent | 593013c94c97b82485c895a717591a15086497f2 (diff) | |
download | vdr-a1663a36125cd7b73162104aecd619653c625cc5.tar.gz vdr-a1663a36125cd7b73162104aecd619653c625cc5.tar.bz2 |
Fixed detection of Premiere NVOD channel links
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 13 |
1 files changed, 12 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 1.53 2006/05/28 15:03:40 kls Exp $ + * $Id: channels.c 1.54 2007/07/21 14:55:01 kls Exp $ */ #include "channels.h" @@ -1007,6 +1007,17 @@ cChannel *cChannels::GetByChannelID(tChannelID ChannelID, bool TryWithoutRid, bo } return NULL; } +cChannel *cChannels::GetByTransponderID(tChannelID ChannelID) +{ + int source = ChannelID.Source(); + int nid = ChannelID.Nid(); + int tid = ChannelID.Tid(); + for (cChannel *channel = First(); channel; channel = Next(channel)) { + if (channel->Tid() == tid && channel->Nid() == nid && channel->Source() == source) + return channel; + } + return NULL; +} bool cChannels::HasUniqueChannelID(cChannel *NewChannel, cChannel *OldChannel) { |