From 11ee1c8136a10cba5c0b856b78155da8723f089c Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 30 Mar 2014 19:35:48 +0200 Subject: [PATCH] getservices.cpp: -fix dont replace not existing channel Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fe7775665a2d879dc4dde0f02fcf9d3397ce17cd Author: Jacek Jendrzej Date: 2014-03-30 (Sun, 30 Mar 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/getservices.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index af134fa52..134e3edb9 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -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;