正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -1375,6 +1375,7 @@ int SrsSharedPtrMessage::initialize(ISrsMessage* msg, char* payload, int size) | @@ -1375,6 +1375,7 @@ int SrsSharedPtrMessage::initialize(ISrsMessage* msg, char* payload, int size) | ||
1375 | ptr = new SrsSharedPtr(); | 1375 | ptr = new SrsSharedPtr(); |
1376 | 1376 | ||
1377 | // should copy the payload once | 1377 | // should copy the payload once |
1378 | + // TODO: maybe can directly attach the common message. | ||
1378 | ptr->payload = new char[size]; | 1379 | ptr->payload = new char[size]; |
1379 | memcpy(ptr->payload, payload, size); | 1380 | memcpy(ptr->payload, payload, size); |
1380 | ptr->size = size; | 1381 | ptr->size = size; |
-
请 注册 或 登录 后发表评论