mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Fixed Sid finder.
This commit is contained in:
parent
10554cf3a7
commit
03bd903731
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* 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 <libsi/section.h>
|
#include <libsi/section.h>
|
||||||
@ -49,10 +49,10 @@ void cSidFinder::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
|
|||||||
if (!assoc.isNITPid()) {
|
if (!assoc.isNITPid()) {
|
||||||
if (assoc.getServiceId() != channel.Sid()) {
|
if (assoc.getServiceId() != channel.Sid()) {
|
||||||
debug("cSidFinder::Process(): Sid=%d\n", assoc.getServiceId());
|
debug("cSidFinder::Process(): Sid=%d\n", assoc.getServiceId());
|
||||||
if (!Channels.Lock(true, 10)) {
|
if (!Channels.Lock(true, 10))
|
||||||
return;
|
return;
|
||||||
}
|
cChannel *IptvChannel = Channels.GetByChannelID(channel.GetChannelID());
|
||||||
channel.SetId(channel.Nid(), channel.Tid(), assoc.getServiceId(), channel.Rid());
|
IptvChannel->SetId(IptvChannel->Nid(), IptvChannel->Tid(), assoc.getServiceId(), IptvChannel->Rid());
|
||||||
Channels.Unlock();
|
Channels.Unlock();
|
||||||
}
|
}
|
||||||
SetChannel(NULL);
|
SetChannel(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user