mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Fixed transport media change for RTCP.
This commit is contained in:
parent
28cc3cae63
commit
2c6c6ea5fd
2
socket.c
2
socket.c
@ -128,7 +128,7 @@ bool cSatipSocket::OpenMulticast(const int portP, const char *streamAddrP, const
|
|||||||
|
|
||||||
void cSatipSocket::Close(void)
|
void cSatipSocket::Close(void)
|
||||||
{
|
{
|
||||||
debug1("%s sockerPort=%d", __PRETTY_FUNCTION__, socketPortM);
|
debug1("%s socketPort=%d", __PRETTY_FUNCTION__, socketPortM);
|
||||||
// Check if socket exists
|
// Check if socket exists
|
||||||
if (socketDescM >= 0) {
|
if (socketDescM >= 0) {
|
||||||
Leave();
|
Leave();
|
||||||
|
6
tuner.c
6
tuner.c
@ -229,6 +229,8 @@ bool cSatipTuner::Connect(void)
|
|||||||
// Flush any old content
|
// Flush any old content
|
||||||
//rtpM.Flush();
|
//rtpM.Flush();
|
||||||
//rtcpM.Flush();
|
//rtcpM.Flush();
|
||||||
|
if (useTcp)
|
||||||
|
debug1("%s Requesting TCP [device %d]", __PRETTY_FUNCTION__, deviceIdM);
|
||||||
if (rtspM.Setup(*uri, rtpM.Port(), rtcpM.Port(), useTcp)) {
|
if (rtspM.Setup(*uri, rtpM.Port(), rtcpM.Port(), useTcp)) {
|
||||||
keepAliveM.Set(timeoutM);
|
keepAliveM.Set(timeoutM);
|
||||||
if (nextServerM.IsValid()) {
|
if (nextServerM.IsValid()) {
|
||||||
@ -401,9 +403,9 @@ void cSatipTuner::SetupTransport(int rtpPortP, int rtcpPortP, const char *stream
|
|||||||
rtcpM.Close();
|
rtcpM.Close();
|
||||||
if (rtcpPortP >= 0) {
|
if (rtcpPortP >= 0) {
|
||||||
if (multicast)
|
if (multicast)
|
||||||
rtcpM.OpenMulticast(rtpPortP, streamAddrP, sourceAddrP);
|
rtcpM.OpenMulticast(rtcpPortP, streamAddrP, sourceAddrP);
|
||||||
else
|
else
|
||||||
rtcpM.Open(rtpPortP);
|
rtcpM.Open(rtcpPortP);
|
||||||
cSatipPoller::GetInstance()->Register(rtcpM);
|
cSatipPoller::GetInstance()->Register(rtcpM);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user