Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-27 11:57:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d0bc0884d1cf5927473dc97b320af0b587b234cd
d0bc0884
1 parent
a645b403
refine rtmp client, add comments for the dumps_packets()
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
trunk/src/app/srs_app_source.cpp
trunk/src/app/srs_app_source.cpp
查看文件 @
d0bc088
...
...
@@ -212,8 +212,13 @@ int SrsMessageQueue::dump_packets(int max_count, SrsSharedPtrMessage** pmsgs, in
av_start_time
=
last
->
header
.
timestamp
;
if
(
count
==
(
int
)
msgs
.
size
())
{
// the pmsgs is big enough and clear msgs at most time.
msgs
.
clear
();
}
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,
// the rtmp play client will get 128msgs once, so this branch rarely execute.
msgs
.
erase
(
msgs
.
begin
(),
msgs
.
begin
()
+
count
);
}
...
...
请
注册
或
登录
后发表评论