优化循环池性能

This commit is contained in:
ziyue
2022-01-06 14:30:44 +08:00
parent e2636c5179
commit 5a592e6db6
10 changed files with 13 additions and 13 deletions

View File

@@ -72,7 +72,7 @@ void FlvMuxer::start(const EventPoller::Ptr &poller, const RtmpMediaSource::Ptr
}
BufferRaw::Ptr FlvMuxer::obtainBuffer() {
return _packet_pool.obtain();
return _packet_pool.obtain2();
}
BufferRaw::Ptr FlvMuxer::obtainBuffer(const void *data, size_t len) {