优化rtp性能

This commit is contained in:
xia-chu
2021-02-05 11:28:50 +08:00
parent b0e1d5d6aa
commit c5cfbce241
13 changed files with 44 additions and 31 deletions

View File

@@ -913,8 +913,8 @@ void RtspSession::send_NotAcceptable() {
sendRtspResponse("406 Not Acceptable",{"Connection","Close"});
}
void RtspSession::onRtpSorted(const RtpPacket::Ptr &rtp, int track_idx) {
_push_src->onWrite(rtp, false);
void RtspSession::onRtpSorted(RtpPacket::Ptr rtp, int track_idx) {
_push_src->onWrite(std::move(rtp), false);
}
void RtspSession::onRcvPeerUdpData(int interleaved, const Buffer::Ptr &buf, const struct sockaddr &addr) {