mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
getservices.cpp: -fix dont replace not existing channel
This commit is contained in:
@@ -425,6 +425,9 @@ void CServiceManager::ParseChannels(xmlNodePtr node, const t_transport_stream_id
|
|||||||
int result = allchans.erase(chid);
|
int result = allchans.erase(chid);
|
||||||
printf("[getservices]: %s '%s' (sid=0x%x): %s", add ? "replacing" : "removing",
|
printf("[getservices]: %s '%s' (sid=0x%x): %s", add ? "replacing" : "removing",
|
||||||
name.c_str(), service_id, result ? "succeded.\n" : "FAILED!\n");
|
name.c_str(), service_id, result ? "succeded.\n" : "FAILED!\n");
|
||||||
|
|
||||||
|
if(!result && remove && add)
|
||||||
|
add = false;//dont replace not existing channel
|
||||||
}
|
}
|
||||||
if(!add) {
|
if(!add) {
|
||||||
node = node->xmlNextNode;
|
node = node->xmlNextNode;
|
||||||
|
Reference in New Issue
Block a user