mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 21:15:57 +08:00
优化循环池性能
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user