From 51e63ea265f43a217dfb83d276263ab71e351fd2 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sun, 22 Apr 2012 15:25:36 +0400 Subject: [PATCH] zapit/src/getservices.cpp: bugfix, check satellite position when adding transponder to satelliteTransponders Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/cb692c027482631deb44efc754c3e4da5ec1d3bd Author: [CST] Focus Date: 2012-04-22 (Sun, 22 Apr 2012) ------------------ This commit was generated by Migit --- src/zapit/src/getservices.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index 82db57a82..4f8ea90dd 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -1076,9 +1076,11 @@ void CServiceManager::UpdateSatTransponders(t_satellite_position satellitePositi break; } } - ret = stransponders.insert(transponder_pair_t(tI->first, tI->second)); - if (ret.second == false) - tI->second.dump("[zapit] duplicate in sat transponders:"); + if (tI->second.satellitePosition == satellitePosition) { + ret = stransponders.insert(transponder_pair_t(tI->first, tI->second)); + if (ret.second == false) + tI->second.dump("[zapit] duplicate in sat transponders:"); + } } }