RTSP: Don't attempt to send RTCPs before SETUP is completed

This commit is contained in:
Thulinma 2018-12-03 17:29:40 +01:00
parent 9ba2619b9f
commit 69c41035c4

View file

@ -439,7 +439,7 @@ namespace Mist{
} }
it->second.sorter.addPacket(pack); it->second.sorter.addPacket(pack);
} }
if (Util::epoch() / 5 != it->second.rtcpSent){ if (selectedTracks.count(it->first) && Util::epoch() / 5 != it->second.rtcpSent){
it->second.rtcpSent = Util::epoch() / 5; it->second.rtcpSent = Util::epoch() / 5;
it->second.pack.sendRTCP_RR(connectedAt, it->second, it->first, myMeta, sendUDP); it->second.pack.sendRTCP_RR(connectedAt, it->second, it->first, myMeta, sendUDP);
} }