优化循环池性能

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

@@ -99,7 +99,7 @@ void MpegMuxer::createContext() {
/*alloc*/
[](void *param, size_t bytes) {
MpegMuxer *thiz = (MpegMuxer *) param;
thiz->_current_buffer = thiz->_buffer_pool.obtain();;
thiz->_current_buffer = thiz->_buffer_pool.obtain2();
thiz->_current_buffer->setCapacity(bytes + 1);
return (void *) thiz->_current_buffer->data();
},