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
8dc4844db8
commit
82cf5488a7
4
tuner.c
4
tuner.c
@ -392,8 +392,8 @@ void cSatipTuner::SetupTransport(int rtpPortP, int rtcpPortP, const char *stream
|
|||||||
// Adapt RTP to any transport media change
|
// Adapt RTP to any transport media change
|
||||||
if (multicast != rtpM.IsMulticast() || rtpPortP != rtpM.Port()) {
|
if (multicast != rtpM.IsMulticast() || rtpPortP != rtpM.Port()) {
|
||||||
cSatipPoller::GetInstance()->Unregister(rtpM);
|
cSatipPoller::GetInstance()->Unregister(rtpM);
|
||||||
rtpM.Close();
|
|
||||||
if (rtpPortP >= 0) {
|
if (rtpPortP >= 0) {
|
||||||
|
rtpM.Close();
|
||||||
if (multicast)
|
if (multicast)
|
||||||
rtpM.OpenMulticast(rtpPortP, streamAddrP, sourceAddrP);
|
rtpM.OpenMulticast(rtpPortP, streamAddrP, sourceAddrP);
|
||||||
else
|
else
|
||||||
@ -404,8 +404,8 @@ void cSatipTuner::SetupTransport(int rtpPortP, int rtcpPortP, const char *stream
|
|||||||
// Adapt RTCP to any transport media change
|
// Adapt RTCP to any transport media change
|
||||||
if (multicast != rtcpM.IsMulticast() || rtcpPortP != rtcpM.Port()) {
|
if (multicast != rtcpM.IsMulticast() || rtcpPortP != rtcpM.Port()) {
|
||||||
cSatipPoller::GetInstance()->Unregister(rtcpM);
|
cSatipPoller::GetInstance()->Unregister(rtcpM);
|
||||||
rtcpM.Close();
|
|
||||||
if (rtcpPortP >= 0) {
|
if (rtcpPortP >= 0) {
|
||||||
|
rtcpM.Close();
|
||||||
if (multicast)
|
if (multicast)
|
||||||
rtcpM.OpenMulticast(rtcpPortP, streamAddrP, sourceAddrP);
|
rtcpM.OpenMulticast(rtcpPortP, streamAddrP, sourceAddrP);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user