From 8849308cf9ad1e85ed1790aa832806ce7f74e565 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 22 Jul 2007 18:00:00 +0200 Subject: =?UTF-8?q?Version=201.5.6=20-=20Fixed=20a=20buffer=20overflow=20i?= =?UTF-8?q?n=20initializing=20the=20system=20character=20table=20(thanks?= =?UTF-8?q?=20=20=20to=20Marco=20Schl=C3=BC=C3=9Fler).=20-=20Updated=20the?= =?UTF-8?q?=20Russian=20OSD=20texts=20(thanks=20to=20Oleg=20Roitburd).=20-?= =?UTF-8?q?=20Fixed=20handling=20single=20byte=20characters=20>0x7F=20in?= =?UTF-8?q?=20Utf8ToArray()=20(thanks=20to=20Udo=20=20=20Richter).=20-=20I?= =?UTF-8?q?mproved=20numdigits(),=20isnumber()=20and=20strreplace()=20(tha?= =?UTF-8?q?nks=20to=20Tobias=20Bratfisch).=20-=20Fixed=20clearing=20color?= =?UTF-8?q?=20buttons=20in=20the=20'curses'=20skin=20(thanks=20to=20Udo=20?= =?UTF-8?q?Richter).=20-=20Fixed=20a=20typo=20in=20the=20function=20name?= =?UTF-8?q?=20of=20cOsd::SetOsdPosition()=20and=20added=20a=20range=20=20?= =?UTF-8?q?=20check=20to=20it=20(thanks=20to=20Christoph=20Haubrich).=20-?= =?UTF-8?q?=20Updated=20the=20Finnish=20OSD=20texts=20(thanks=20to=20Rolf?= =?UTF-8?q?=20Ahrenberg).=20-=20Improved=20cControl::Launch()=20to=20keep?= =?UTF-8?q?=20'control'=20from=20pointing=20to=20uninitialized=20=20=20mem?= =?UTF-8?q?ory=20(thanks=20to=20Rolf=20Ahrenberg).=20-=20Made=20skipspace(?= =?UTF-8?q?)=20an=20inline=20function=20(suggested=20by=20Tobias=20Bratfis?= =?UTF-8?q?ch)=20and=20changed=20=20=20it=20to=20handle=20the=20most=20com?= =?UTF-8?q?mon=20case=20of=20'no=20leading=20space'=20very=20fast,=20and?= =?UTF-8?q?=20avoid=20=20=20calling=20isspace(),=20which=20made=20the=20wh?= =?UTF-8?q?ole=20function=20a=20lot=20faster.=20-=20Fixed=20detection=20of?= =?UTF-8?q?=20Premiere=20NVOD=20channel=20links=20(thanks=20to=20Markus=20?= =?UTF-8?q?Hahn).=20-=20Added=20a=20table=20of=20the=20used=20trick=20spee?= =?UTF-8?q?d=20values=20to=20the=20description=20of=20=20=20cDevice::Trick?= =?UTF-8?q?Speed()=20(suggested=20by=20Martin=20Dauskardt).=20-=20Added=20?= =?UTF-8?q?a=20missing=20'P'=20to=20vdr.c's=20SHUTDOWNCANCELROMPT=20macro?= =?UTF-8?q?=20(reported=20by=20Marco=20=20=20Schl=C3=BC=C3=9Fler).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channels.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'channels.c') diff --git a/channels.c b/channels.c index 67cf3c9..d725ac7 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 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) { -- cgit v1.2.3