mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
zapit/src/scansdt.cpp: keep 'new' channel flag over next scans
This commit is contained in:
@@ -172,7 +172,7 @@ bool CSdt::Parse(t_transport_stream_id &tsid, t_original_network_id &onid)
|
|||||||
ZapitChannelList satChannelList;
|
ZapitChannelList satChannelList;
|
||||||
CServiceManager::getInstance()->GetAllTransponderChannels(satChannelList, tpid);
|
CServiceManager::getInstance()->GetAllTransponderChannels(satChannelList, tpid);
|
||||||
for (zapit_list_it_t oldI = satChannelList.begin(); oldI != satChannelList.end(); ++oldI)
|
for (zapit_list_it_t oldI = satChannelList.begin(); oldI != satChannelList.end(); ++oldI)
|
||||||
(*oldI)->flags = CZapitChannel::REMOVED;
|
(*oldI)->flags |= CZapitChannel::REMOVED;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_SDT
|
#ifdef DEBUG_SDT
|
||||||
@@ -320,7 +320,8 @@ bool CSdt::ParseServiceDescriptor(ServiceDescription * service, ServiceDescripto
|
|||||||
if (channel) {
|
if (channel) {
|
||||||
channel->setName(serviceName);
|
channel->setName(serviceName);
|
||||||
channel->setServiceType(real_type);
|
channel->setServiceType(real_type);
|
||||||
channel->flags = CZapitChannel::UPDATED;
|
channel->flags &= ~CZapitChannel::REMOVED;
|
||||||
|
channel->flags |= CZapitChannel::UPDATED;
|
||||||
} else {
|
} else {
|
||||||
channel = new CZapitChannel(serviceName, channel_id,
|
channel = new CZapitChannel(serviceName, channel_id,
|
||||||
real_type, satellitePosition, freq_id);
|
real_type, satellitePosition, freq_id);
|
||||||
|
Reference in New Issue
Block a user