use new/delete instead of malloc/free
[enigma2.git] / lib / dvb / scan.cpp
index 70c3e6b3e4debd6aa68332affcd8ae690834dc09..8b895dc9f8a42a59ea959604e162a033bb2f0a30 100644 (file)
@@ -305,6 +305,12 @@ void eDVBScan::addChannelToScan(const eDVBChannelID &chid, iDVBFrontendParameter
                ++i;
        }
 
+       if (found_count > 0)
+       {
+               eDebug("already in todo list");
+               return;
+       }
+
                /* ... in the list of successfully scanned channels */
        for (std::list<ePtr<iDVBFrontendParameters> >::const_iterator i(m_ch_scanned.begin()); i != m_ch_scanned.end(); ++i)
                if (sameChannel(*i, feparm))