精简代码

This commit is contained in:
xiongziliang 2022-09-03 16:27:30 +08:00
parent c8ea6490cd
commit 06c6654ed5
6 changed files with 1 additions and 7 deletions

@ -1 +1 @@
Subproject commit 23575ba82d00641f8f33851b1d85391da310c378
Subproject commit 82f82e723eda127777aaf91ad0e4615e8d56e8d5

View File

@ -114,7 +114,6 @@ private:
}
strong_self->onReaderChanged(size);
});
onReaderChanged(0);
if (!_init_segment.empty()) {
regist();
}

View File

@ -52,7 +52,6 @@ public:
strongSelf->onReaderChanged(size);
};
_ring = std::make_shared<RingType>(0, std::move(lam));
onReaderChanged(0);
regist();
}

View File

@ -158,8 +158,6 @@ public:
//GOP默认缓冲512组RTMP包每组RTMP包时间戳相同(如果开启合并写了那么每组为合并写时间内的RTMP包),
//每次遇到关键帧第一个RTMP包则会清空GOP缓存(因为有新的关键帧了,同样可以实现秒开)
_ring = std::make_shared<RingType>(_ring_size,std::move(lam));
onReaderChanged(0);
if(_metadata){
regist();
}

View File

@ -183,7 +183,6 @@ public:
//GOP默认缓冲512组RTP包每组RTP包时间戳相同(如果开启合并写了那么每组为合并写时间内的RTP包),
//每次遇到关键帧第一个RTP包则会清空GOP缓存(因为有新的关键帧了,同样可以实现秒开)
_ring = std::make_shared<RingType>(_ring_size, std::move(lam));
onReaderChanged(0);
if (!_sdp.empty()) {
regist();
}

View File

@ -98,7 +98,6 @@ private:
}
strong_self->onReaderChanged(size);
});
onReaderChanged(0);
//注册媒体源
regist();
}