mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Fixed a possible crash in pid scanner.
This commit is contained in:
parent
ec2ec19f68
commit
73906ab698
2
HISTORY
2
HISTORY
@ -83,4 +83,4 @@ VDR Plugin 'iptv' Revision History
|
||||
- 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.
|
||||
- Fixed a possible crash in sid and pid scanners.
|
||||
|
@ -120,6 +120,7 @@ void cPidScanner::Process(const uint8_t* buf)
|
||||
return;
|
||||
}
|
||||
cChannel *IptvChannel = Channels.GetByChannelID(channel.GetChannelID());
|
||||
if (IptvChannel) {
|
||||
int Apids[MAXAPIDS + 1] = { 0 }; // these lists are zero-terminated
|
||||
int Dpids[MAXDPIDS + 1] = { 0 };
|
||||
int Spids[MAXSPIDS + 1] = { 0 };
|
||||
@ -150,6 +151,7 @@ void cPidScanner::Process(const uint8_t* buf)
|
||||
#else
|
||||
IptvChannel->SetPids(Vpid, Ppid, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid);
|
||||
#endif
|
||||
}
|
||||
Channels.Unlock();
|
||||
process = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user