getservices: break provider replace search when first replace found

This commit is contained in:
[CST] Focus
2012-01-20 14:20:11 +04:00
parent 78c855add3
commit b95f33c56d

View File

@@ -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;
}