From 763c2080a6663b0fa6ad4a10cce51dfd332cfc8b Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 20 Jan 2012 14:20:11 +0400 Subject: [PATCH] getservices: break provider replace search when first replace found Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b95f33c56d08b032eb79be34c7e3685fcb6fc764 Author: [CST] Focus Date: 2012-01-20 (Fri, 20 Jan 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/getservices.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index 387ffcdf4..9156d867b 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -980,12 +980,11 @@ bool CServiceManager::ReplaceProviderName(std::string &name, t_transport_stream_ else if(!strcasecmp(replace.name.c_str(), name.c_str())) newname = replace.name; } - - } - if(!newname.empty()) { - printf("ReplaceProviderName: old [%s] new [%s]\n", name.c_str(), newname.c_str()); - name = newname; - return true; + if(!newname.empty()) { + printf("ReplaceProviderName: old [%s] new [%s]\n", name.c_str(), newname.c_str()); + name = newname; + return true; + } } return false; }