getservices.cpp: -fix dont replace not existing channel

Origin commit data
------------------
Branch: ni/coolstream
Commit: fe7775665a
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-03-30 (Sun, 30 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2014-03-30 19:35:48 +02:00
parent 3058b26efa
commit 11ee1c8136

View File

@@ -425,6 +425,9 @@ void CServiceManager::ParseChannels(xmlNodePtr node, const t_transport_stream_id
int result = allchans.erase(chid);
printf("[getservices]: %s '%s' (sid=0x%x): %s", add ? "replacing" : "removing",
name.c_str(), service_id, result ? "succeded.\n" : "FAILED!\n");
if(!result && remove && add)
add = false;//dont replace not existing channel
}
if(!add) {
node = node->xmlNextNode;