1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 11:37:42 +00:00

Fixed reconnection.

This commit is contained in:
Rolf Ahrenberg
2014-12-16 22:35:49 +02:00
parent 8ea561a021
commit 01d2afcfc2
4 changed files with 58 additions and 36 deletions

View File

@@ -104,15 +104,12 @@ void cSatipTuner::Action(void)
break;
case tsSet:
debug4("%s: tsSet [device %d]", __PRETTY_FUNCTION__, deviceIdM);
reConnectM.Set(eConnectTimeoutMs);
if (Connect()) {
RequestState(tsTuned, smInternal);
UpdatePids(true);
}
else {
error("Tuning failed - retuning [device %d]", deviceIdM);
else
Disconnect();
}
break;
case tsTuned:
debug4("%s: tsTuned [device %d]", __PRETTY_FUNCTION__, deviceIdM);
@@ -212,6 +209,8 @@ bool cSatipTuner::Connect(void)
return true;
}
}
else
rtspM.Reset();
streamIdM = -1;
error("Connect failed [device %d]", deviceIdM);
}