diff options
Diffstat (limited to 'lib/dvb/scan.cpp')
| -rw-r--r-- | lib/dvb/scan.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/dvb/scan.cpp b/lib/dvb/scan.cpp index 3915a0c4..20bb9159 100644 --- a/lib/dvb/scan.cpp +++ b/lib/dvb/scan.cpp @@ -123,13 +123,10 @@ RESULT eDVBScan::nextChannel() m_chid_current = eDVBChannelID(); m_channel_state = iDVBChannel::state_idle; + if (fe->tune(*m_ch_current)) - { return nextChannel(); - m_event(evtFail); - return -EINVAL; - } - + m_event(evtUpdate); return 0; } @@ -782,4 +779,15 @@ RESULT eDVBScan::getFrontend(ePtr<iDVBFrontend> &fe) return m_channel->getFrontend(fe); fe = 0; return -1; -}
\ No newline at end of file +} + +RESULT eDVBScan::getCurrentTransponder(ePtr<iDVBFrontendParameters> &tp) +{ + if (m_ch_current) + { + tp = m_ch_current; + return 0; + } + tp = 0; + return -1; +} |
