mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Fixed reading reception status.
This commit is contained in:
parent
005fa59dd6
commit
5d697c36dc
23
tuner.c
23
tuner.c
@ -116,20 +116,17 @@ void cSatipTuner::Action(void)
|
|||||||
case tsTuned:
|
case tsTuned:
|
||||||
//debug("cSatipTuner::%s(): tsTuned [device %d]", __FUNCTION__, deviceIdM);
|
//debug("cSatipTuner::%s(): tsTuned [device %d]", __FUNCTION__, deviceIdM);
|
||||||
reConnectM.Set(eConnectTimeoutMs);
|
reConnectM.Set(eConnectTimeoutMs);
|
||||||
// Quirk for devices without valid reception data
|
// Read reception statistics via DESCRIBE and RTCP
|
||||||
if (currentServerM && currentServerM->Quirk(cSatipServer::eSatipQuirkForceLock)) {
|
if (hasLockM || ReadReceptionStatus()) {
|
||||||
hasLockM = true;
|
// Quirk for devices without valid reception data
|
||||||
signalStrengthM = eDefaultSignalStrength;
|
if (currentServerM && currentServerM->Quirk(cSatipServer::eSatipQuirkForceLock)) {
|
||||||
signalQualityM = eDefaultSignalQuality;
|
hasLockM = true;
|
||||||
|
signalStrengthM = eDefaultSignalStrength;
|
||||||
|
signalQualityM = eDefaultSignalQuality;
|
||||||
|
}
|
||||||
|
if (hasLockM)
|
||||||
|
RequestState(tsLocked);
|
||||||
}
|
}
|
||||||
// Read reception statistics via DESCRIBE
|
|
||||||
else if (!ReadReceptionStatus()) {
|
|
||||||
error("Reading reception status failed - re-tuning [device %d]", deviceIdM);
|
|
||||||
RequestState(tsSet);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (hasLockM)
|
|
||||||
RequestState(tsLocked);
|
|
||||||
break;
|
break;
|
||||||
case tsLocked:
|
case tsLocked:
|
||||||
//debug("cSatipTuner::%s(): tsLocked [device %d]", __FUNCTION__, deviceIdM);
|
//debug("cSatipTuner::%s(): tsLocked [device %d]", __FUNCTION__, deviceIdM);
|
||||||
|
Loading…
Reference in New Issue
Block a user