优化GOP相关逻辑

This commit is contained in:
xiongziliang
2020-01-20 16:22:25 +08:00
parent f453668683
commit f5187e8b0d
6 changed files with 12 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ public:
* @param id 流id
* @param ringSize 环形缓存大小
*/
RtspMediaSourceImp(const string &vhost, const string &app, const string &id, int ringSize = 0) : RtspMediaSource(vhost, app, id,ringSize) {
RtspMediaSourceImp(const string &vhost, const string &app, const string &id, int ringSize = RTP_GOP_SIZE) : RtspMediaSource(vhost, app, id,ringSize) {
_demuxer = std::make_shared<RtspDemuxer>();
_demuxer->setTrackListener(this);
}