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:
7
tuner.c
7
tuner.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user