优化rtsp播放器的打开速度

This commit is contained in:
xiongziliang 2019-01-24 17:52:41 +08:00
parent a646640580
commit c3ce2a463b

View File

@ -74,9 +74,12 @@ private:
_pRtspMediaSrc->onWrite(rtppt,true); _pRtspMediaSrc->onWrite(rtppt,true);
} }
_parser->inputRtp(rtppt); _parser->inputRtp(rtppt);
checkInited(); checkIndited();
} }
bool isInited(int analysisMs = 2000) override{
return true;
}
private: private:
RtspMediaSource::Ptr _pRtspMediaSrc; RtspMediaSource::Ptr _pRtspMediaSrc;