From 03bd90373144e31c76198d68139318e29b3cc7cc Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 29 Sep 2007 22:44:23 +0000 Subject: [PATCH] Fixed Sid finder. --- sidfinder.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sidfinder.c b/sidfinder.c index 0f22259..320edc0 100644 --- a/sidfinder.c +++ b/sidfinder.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: sidfinder.c,v 1.1 2007/09/28 23:23:12 rahrenbe Exp $ + * $Id: sidfinder.c,v 1.2 2007/09/29 22:44:23 rahrenbe Exp $ */ #include @@ -49,10 +49,10 @@ void cSidFinder::Process(u_short Pid, u_char Tid, const u_char *Data, int Length if (!assoc.isNITPid()) { if (assoc.getServiceId() != channel.Sid()) { debug("cSidFinder::Process(): Sid=%d\n", assoc.getServiceId()); - if (!Channels.Lock(true, 10)) { + if (!Channels.Lock(true, 10)) return; - } - channel.SetId(channel.Nid(), channel.Tid(), assoc.getServiceId(), channel.Rid()); + cChannel *IptvChannel = Channels.GetByChannelID(channel.GetChannelID()); + IptvChannel->SetId(IptvChannel->Nid(), IptvChannel->Tid(), assoc.getServiceId(), IptvChannel->Rid()); Channels.Unlock(); } SetChannel(NULL);