fix (or hack) scart switching because the value in /proc/stb/avs/0/fb reads low,...
[enigma2.git] / lib / components / scan.cpp
index 6676af51d9ac4010f1238629519f03c3607938fd..bfbb02da667fc98a252d4694b977285ea77c05f6 100644 (file)
@@ -28,6 +28,7 @@ void eComponentScan::scanEvent(int evt)
                } else
                {
                        m_scan->insertInto(db);
+                       db->flush();
                        eDebug("scan done!");
                }
        }
@@ -77,7 +78,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 +93,9 @@ int eComponentScan::start(int flags)
 
        eUsePtr<iDVBChannel> 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;
        }