diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-04-21 16:30:28 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-04-21 16:30:28 +0000 |
| commit | 8a7fd294aeb67932e1057bf967958bbe5a959cfb (patch) | |
| tree | 7952e555079d7aaf3fa1ffbcf5f6e9a4a0bba87c /lib/components/scan.cpp | |
| parent | 094378485e220c9866ec449d4e0e3114a3f1c34d (diff) | |
| download | enigma2-8a7fd294aeb67932e1057bf967958bbe5a959cfb.tar.gz enigma2-8a7fd294aeb67932e1057bf967958bbe5a959cfb.zip | |
- improved scan error handling
Diffstat (limited to 'lib/components/scan.cpp')
| -rw-r--r-- | lib/components/scan.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/components/scan.cpp b/lib/components/scan.cpp index c82d04ef..ad2e4d1a 100644 --- a/lib/components/scan.cpp +++ b/lib/components/scan.cpp @@ -89,7 +89,10 @@ int eComponentScan::start() ePtr<iDVBChannel> channel; if (mgr->allocateRawChannel(channel)) + { eDebug("scan: allocating raw channel failed!"); + return -1; + } std::list<ePtr<iDVBFrontendParameters> > list; @@ -98,7 +101,7 @@ int eComponentScan::start() m_scan = new eDVBScan(channel); m_scan->connectEvent(slot(*this, &eComponentScan::scanEvent), m_scan_event_connection); m_scan->start(list); - + return 0; } @@ -126,3 +129,8 @@ int eComponentScan::isDone() { return m_done; } + +int eComponentScan::getError() +{ + return m_failed; +} |
