mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Avoid closing RTP/RTCP ports.
This commit is contained in:
parent
2c6c6ea5fd
commit
0ce8ae7206
4
tuner.c
4
tuner.c
@ -388,8 +388,8 @@ void cSatipTuner::SetupTransport(int rtpPortP, int rtcpPortP, const char *stream
|
||||
// Adapt RTP to any transport media change
|
||||
if (multicast != rtpM.IsMulticast() || rtpPortP != rtpM.Port()) {
|
||||
cSatipPoller::GetInstance()->Unregister(rtpM);
|
||||
rtpM.Close();
|
||||
if (rtpPortP >= 0) {
|
||||
rtpM.Close();
|
||||
if (multicast)
|
||||
rtpM.OpenMulticast(rtpPortP, streamAddrP, sourceAddrP);
|
||||
else
|
||||
@ -400,8 +400,8 @@ void cSatipTuner::SetupTransport(int rtpPortP, int rtcpPortP, const char *stream
|
||||
// Adapt RTCP to any transport media change
|
||||
if (multicast != rtcpM.IsMulticast() || rtcpPortP != rtcpM.Port()) {
|
||||
cSatipPoller::GetInstance()->Unregister(rtcpM);
|
||||
rtcpM.Close();
|
||||
if (rtcpPortP >= 0) {
|
||||
rtcpM.Close();
|
||||
if (multicast)
|
||||
rtcpM.OpenMulticast(rtcpPortP, streamAddrP, sourceAddrP);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user