set frontend state to stateTuning when tuneloop starts.. ( to avoid false lostlock...
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 20 Jan 2006 20:45:12 +0000 (20:45 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 20 Jan 2006 20:45:12 +0000 (20:45 +0000)
lib/dvb/frontend.cpp

index f4cbd30..9d4061e 100644 (file)
@@ -669,13 +669,6 @@ void eDVBFrontend::setFrontend()
                perror("FE_SET_FRONTEND failed");
                return;
        }
                perror("FE_SET_FRONTEND failed");
                return;
        }
-
-       if (m_state != stateTuning)
-       {
-               m_tuning = 1;
-               m_state = stateTuning;
-               m_stateChanged(this);
-       }
        m_timeout->start(5000, 1); // 5 sec timeout. TODO: symbolrate dependent
 }
 
        m_timeout->start(5000, 1); // 5 sec timeout. TODO: symbolrate dependent
 }
 
@@ -950,6 +943,13 @@ RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where)
        m_tuneTimer->start(0,true);
        m_sec_sequence.current() = m_sec_sequence.begin();
 
        m_tuneTimer->start(0,true);
        m_sec_sequence.current() = m_sec_sequence.begin();
 
+       if (m_state != stateTuning)
+       {
+               m_tuning = 1;
+               m_state = stateTuning;
+               m_stateChanged(this);
+       }
+
        return 0;
 }
 
        return 0;
 }