fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 20 Jan 2006 22:33:44 +0000 (22:33 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 20 Jan 2006 22:33:44 +0000 (22:33 +0000)
lib/dvb/frontend.cpp

index 9d4061e66f045ea9651797eb8d5436c650594c3b..99cafe75340c73b63396ebdfdeba03a7622b36d4 100644 (file)
@@ -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)