aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/frontend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dvb/frontend.cpp')
-rw-r--r--lib/dvb/frontend.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index 9d4061e6..99cafe75 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -413,19 +413,12 @@ void eDVBFrontend::feEvent(int w)
void eDVBFrontend::timeout()
{
- int state;
+ m_tuning = 0;
if (m_state == stateTuning)
{
- state = stateFailed;
- eDebug("DVBFrontend: timeout");
- if (m_state != state)
- {
- m_state = state;
- m_stateChanged(this);
- }
- m_tuning = 0;
- } else
- m_tuning = 0;
+ m_state = stateFailed;
+ m_stateChanged(this);
+ }
}
int eDVBFrontend::readFrontendData(int type)
@@ -941,6 +934,7 @@ RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where)
m_sec_sequence.push_back( eSecCommand(eSecCommand::SET_FRONTEND) );
m_tuneTimer->start(0,true);
+ m_timeout->stop();
m_sec_sequence.current() = m_sec_sequence.begin();
if (m_state != stateTuning)