X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b0e09a2cd9a05a002222d79fb71848f4c7820ff3..9df197b0346cdea53967bf9ed578ff30e2424100:/lib/components/scan.cpp diff --git a/lib/components/scan.cpp b/lib/components/scan.cpp index 6676af51..c21e8f4b 100644 --- a/lib/components/scan.cpp +++ b/lib/components/scan.cpp @@ -28,10 +28,17 @@ void eComponentScan::scanEvent(int evt) } else { m_scan->insertInto(db); + db->flush(); eDebug("scan done!"); } } + if (evt == eDVBScan::evtNewService) + { + newService(); + return; + } + if (evt == eDVBScan::evtFail) { eDebug("scan failed."); @@ -77,7 +84,7 @@ void eComponentScan::addInitial(const eDVBFrontendParametersTerrestrial &p) } -int eComponentScan::start(int flags) +int eComponentScan::start(int feid, int flags) { if (m_initial.empty()) return -2; @@ -92,9 +99,9 @@ int eComponentScan::start(int flags) eUsePtr channel; - if (mgr->allocateRawChannel(channel)) + if (mgr->allocateRawChannel(channel, feid)) { - eDebug("scan: allocating raw channel failed!"); + eDebug("scan: allocating raw channel (on frontend %d) failed!", feid); return -1; } @@ -136,3 +143,10 @@ int eComponentScan::getError() { return m_failed; } + +void eComponentScan::getLastServiceName(std::string &string) +{ + if (!m_scan) + return; + m_scan->getLastServiceName(string); +}