From 5ac0be52cb35d38837aa74b58e71251455ba263f Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 9 Apr 2019 21:05:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=84=E6=92=AD=E7=9B=B8?= =?UTF-8?q?=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtpBroadCaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtsp/RtpBroadCaster.cpp b/src/Rtsp/RtpBroadCaster.cpp index fc5d8003..9389cc54 100644 --- a/src/Rtsp/RtpBroadCaster.cpp +++ b/src/Rtsp/RtpBroadCaster.cpp @@ -124,7 +124,7 @@ RtpBroadCaster::RtpBroadCaster(const string &strLocalIp,const string &strVhost,c bzero(&(peerAddr.sin_zero), sizeof peerAddr.sin_zero); _apUdpSock[i]->setSendPeerAddr((struct sockaddr *)&peerAddr); } - _pReader = src->getRing()->attach(nullptr); + _pReader = src->getRing()->attach(EventPollerPool::Instance().getPoller()); _pReader->setReadCB([this](const RtpPacket::Ptr &pkt){ int i = (int)(pkt->type); auto &pSock = _apUdpSock[i];