1
0
Fork 0
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:
winlin 2013-11-27 23:02:37 +08:00
parent 90af450d63
commit 1653e444dd

View file

@ -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;