mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user