From af6a8a3a102ff0230fcc6d90ad213e2e7d706fa8 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 3 Mar 2006 13:59:56 +0000 Subject: implement readFrontendData method to get a python dictionary containing data about current used transponder/frontend (frontend state, frontend type, lock state, sync state, frequency, symbolrate, fec_innter...) when it is called with True as param it returns the original transponder data (written to tuner) otherwise it reads the current data out of the frontend (corrected tuner data) --- lib/dvb/dvb.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'lib/dvb/dvb.cpp') diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index f8f95276..ad5dfa64 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -626,11 +626,11 @@ void eDVBChannel::frontendStateChanged(iDVBFrontend*fe) } else if (state == iDVBFrontend::stateLostLock) { /* on managed channels, we try to retune in order to re-acquire lock. */ - if (m_feparm) + if (m_current_frontend_parameters) { eDebug("OURSTATE: lost lock, trying to retune"); ourstate = state_tuning; - m_frontend->get().tune(*m_feparm); + m_frontend->get().tune(*m_current_frontend_parameters); } else /* on unmanaged channels, we don't do this. the client will do this. */ { @@ -918,7 +918,7 @@ RESULT eDVBChannel::setChannel(const eDVBChannelID &channelid, ePtrget().tune(*feparm); - m_feparm = feparm; + m_current_frontend_parameters = feparm; if (res) { @@ -977,8 +977,13 @@ RESULT eDVBChannel::getFrontend(ePtr &frontend) frontend = &m_frontend->get(); if (frontend) return 0; - else - return -ENODEV; + return -ENODEV; +} + +RESULT eDVBChannel::getCurrentFrontendParameters(ePtr ¶m) +{ + param = m_current_frontend_parameters; + return 0; } RESULT eDVBChannel::playFile(const char *file) -- cgit v1.2.3