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

Refactored the frontend attaching/detaching signaling.

This commit is contained in:
Rolf Ahrenberg
2015-02-16 17:21:00 +02:00
parent 653d9d659b
commit 84dfc6701e
7 changed files with 101 additions and 57 deletions

View File

@@ -25,8 +25,8 @@ cSatipTuner::cSatipTuner(cSatipDeviceIf &deviceP, unsigned int packetLenP)
rtcpM(*this),
streamAddrM(""),
streamParamM(""),
currentServerM(NULL, 0),
nextServerM(NULL, 0),
currentServerM(NULL, deviceP.GetId(), 0),
nextServerM(NULL, deviceP.GetId(), 0),
mutexM(),
reConnectM(),
keepAliveM(),
@@ -205,7 +205,7 @@ bool cSatipTuner::Connect(void)
currentServerM = nextServerM;
nextServerM.Reset();
}
currentServerM.Use(true);
currentServerM.Attach();
return true;
}
}
@@ -237,7 +237,7 @@ bool cSatipTuner::Disconnect(void)
signalQualityM = -1;
frontendIdM = -1;
currentServerM.Use(false);
currentServerM.Detach();
statusUpdateM.Set(0);
timeoutM = eMinKeepAliveIntervalMs;
pmtPidM = -1;