mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add comments for auto ptr message
This commit is contained in:
parent
90af450d63
commit
1653e444dd
1 changed files with 1 additions and 0 deletions
|
@ -1375,6 +1375,7 @@ int SrsSharedPtrMessage::initialize(ISrsMessage* msg, char* payload, int size)
|
|||
ptr = new SrsSharedPtr();
|
||||
|
||||
// should copy the payload once
|
||||
// TODO: maybe can directly attach the common message.
|
||||
ptr->payload = new char[size];
|
||||
memcpy(ptr->payload, payload, size);
|
||||
ptr->size = size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue