mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
Refine: 优化代码,减少拷贝
This commit is contained in:
parent
9f06dc3aab
commit
3a99440296
@ -781,7 +781,7 @@ BufferRaw::Ptr RtmpProtocol::obtainBuffer(const void *data, size_t len) {
|
||||
if (data && len) {
|
||||
buffer->assign((const char *) data, len);
|
||||
}
|
||||
return buffer;
|
||||
return std::move(buffer);
|
||||
}
|
||||
|
||||
} /* namespace mediakit */
|
||||
|
Loading…
Reference in New Issue
Block a user