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];