diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-24 18:31:14 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-24 18:31:14 +0000 |
| commit | f995ffff71d819416a89c1bec3ceb69d121daa4e (patch) | |
| tree | 1a9215b875d518d67392320a9c5ab4d6b599592d /lib | |
| parent | 45a8745519c1f7f77ebcbf555e485bdc5a1a5528 (diff) | |
| download | enigma2-f995ffff71d819416a89c1bec3ceb69d121daa4e.tar.gz enigma2-f995ffff71d819416a89c1bec3ceb69d121daa4e.zip | |
fix calculation in calculateDifference for cable and terrestrial which should complete the cable scan and hopefully the
terrestrial scan as well
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/frontend.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index 1067a017..c8434c06 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -195,7 +195,22 @@ RESULT eDVBFrontendParameters::calculateDifference(const iDVBFrontendParameters return 0; } case iDVBFrontend::feCable: + eDVBFrontendParametersCable ocable; + if (parm->getDVBC(ocable)) + return -2; + + diff = abs(cable.frequency - ocable.frequency); + diff += abs(cable.symbol_rate - ocable.symbol_rate); + + return 0; case iDVBFrontend::feTerrestrial: + eDVBFrontendParametersTerrestrial oterrestrial; + if (parm->getDVBT(oterrestrial)) + return -2; + + diff = abs(terrestrial.frequency - oterrestrial.frequency); + + return 0; default: return -1; } |
