1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Fixed a possible crash in sid scanner.

This commit is contained in:
Rolf Ahrenberg 2009-02-25 14:34:19 +02:00
parent 1e8f117988
commit ec2ec19f68
2 changed files with 5 additions and 3 deletions

View File

@ -78,8 +78,9 @@ VDR Plugin 'iptv' Revision History
- Updated for vdr-1.7.2.
- Silenced a compilation warning.
2009-02-24: Version 0.2.4
2009-02-25: Version 0.2.4
- Updated for vdr-1.7.4.
- Fixed blacklisting of PAT section filter.
- Set max IPTV device count to VDR's max devices.
- Fixed a possible crash in sid scanner.

View File

@ -51,8 +51,9 @@ void cSidScanner::Process(u_short Pid, u_char Tid, const u_char *Data, int Lengt
if (!Channels.Lock(true, 10))
return;
cChannel *IptvChannel = Channels.GetByChannelID(channel.GetChannelID());
IptvChannel->SetId(IptvChannel->Nid(), IptvChannel->Tid(),
assoc.getServiceId(), IptvChannel->Rid());
if (IptvChannel)
IptvChannel->SetId(IptvChannel->Nid(), IptvChannel->Tid(),
assoc.getServiceId(), IptvChannel->Rid());
Channels.Unlock();
}
SetChannel(NULL);