mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code for bug #194, add comments to macros.
This commit is contained in:
parent
cc6aca9ad5
commit
4af2e78c59
5 changed files with 34 additions and 8 deletions
|
@ -216,7 +216,7 @@ int SrsMessageQueue::dump_packets(int max_count, SrsSharedPtrMessage** pmsgs, in
|
|||
} else {
|
||||
// erase some vector elements may cause memory copy,
|
||||
// maybe can use more efficient vector.swap to avoid copy.
|
||||
// @remark for the pmsgs is big enough, for instance, SYS_MAX_PLAY_SEND_MSGS 128,
|
||||
// @remark for the pmsgs is big enough, for instance, SYS_CONSTS_MAX_PLAY_SEND_MSGS 128,
|
||||
// the rtmp play client will get 128msgs once, so this branch rarely execute.
|
||||
msgs.erase(msgs.begin(), msgs.begin() + count);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue