mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
更新ZLToolK(修复linux下编译问题)
This commit is contained in:
parent
1257ad725b
commit
826f3649ea
@ -1 +1 @@
|
||||
Subproject commit e39409e613e9beeb5fc7c04ade1bf9d865d47f5a
|
||||
Subproject commit 831880216c904478148caa5be6efd598a4f08d97
|
@ -333,7 +333,7 @@ void RtspPlayer::handleResSETUP(const Parser &parser, unsigned int uiTrackIndex)
|
||||
auto srcIP = inet_addr(get_peer_ip().data());
|
||||
weak_ptr<RtspPlayer> weakSelf = dynamic_pointer_cast<RtspPlayer>(shared_from_this());
|
||||
//设置rtp over udp接收回调处理函数
|
||||
pRtpSockRef->setOnRead([srcIP, uiTrackIndex, weakSelf](const Buffer::Ptr &buf, struct sockaddr *addr) {
|
||||
pRtpSockRef->setOnRead([srcIP, uiTrackIndex, weakSelf](const Buffer::Ptr &buf, struct sockaddr *addr , int addr_len) {
|
||||
auto strongSelf = weakSelf.lock();
|
||||
if (!strongSelf) {
|
||||
return;
|
||||
@ -347,7 +347,7 @@ void RtspPlayer::handleResSETUP(const Parser &parser, unsigned int uiTrackIndex)
|
||||
|
||||
if(pRtcpSockRef) {
|
||||
//设置rtcp over udp接收回调处理函数
|
||||
pRtcpSockRef->setOnRead([srcIP, uiTrackIndex, weakSelf](const Buffer::Ptr &buf, struct sockaddr *addr) {
|
||||
pRtcpSockRef->setOnRead([srcIP, uiTrackIndex, weakSelf](const Buffer::Ptr &buf, struct sockaddr *addr , int addr_len) {
|
||||
auto strongSelf = weakSelf.lock();
|
||||
if (!strongSelf) {
|
||||
return;
|
||||
|
@ -970,7 +970,7 @@ inline void RtspSession::startListenPeerUdpData(int trackIdx) {
|
||||
WarnP(this) << "udp端口为空:" << intervaled;
|
||||
return;
|
||||
}
|
||||
sock->setOnRead([onUdpData,intervaled](const Buffer::Ptr &pBuf, struct sockaddr *pPeerAddr){
|
||||
sock->setOnRead([onUdpData,intervaled](const Buffer::Ptr &pBuf, struct sockaddr *pPeerAddr , int addr_len){
|
||||
onUdpData(pBuf,pPeerAddr,intervaled);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user