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-05-13 15:30:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
300f264e923975098449afee3f74043acdff9f32
300f264e
1 parent
91eabda7
set metadata time equals to sequence header time.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
10 行增加
和
6 行删除
trunk/src/app/srs_app_source.cpp
trunk/src/app/srs_app_source.cpp
查看文件 @
300f264
...
...
@@ -1251,14 +1251,11 @@ void SrsSource::on_unpublish()
double
queue_size
=
_srs_config
->
get_queue_length
(
_req
->
vhost
);
consumer
->
set_queue_size
(
queue_size
);
if
(
cache_metadata
&&
(
ret
=
consumer
->
enqueue
(
cache_metadata
->
copy
(),
sample_rate
,
frame_rate
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"dispatch metadata failed. ret=%d"
,
ret
);
return
ret
;
}
srs_info
(
"dispatch metadata success"
);
// if atc, update the sequence header to gop cache time.
if
(
atc
&&
!
gop_cache
->
empty
())
{
if
(
cache_metadata
)
{
cache_metadata
->
header
.
timestamp
=
gop_cache
->
get_start_time
();
}
if
(
cache_sh_video
)
{
cache_sh_video
->
header
.
timestamp
=
gop_cache
->
get_start_time
();
}
...
...
@@ -1267,6 +1264,13 @@ void SrsSource::on_unpublish()
}
}
// copy metadata.
if
(
cache_metadata
&&
(
ret
=
consumer
->
enqueue
(
cache_metadata
->
copy
(),
sample_rate
,
frame_rate
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"dispatch metadata failed. ret=%d"
,
ret
);
return
ret
;
}
srs_info
(
"dispatch metadata success"
);
// copy sequence header
if
(
cache_sh_video
&&
(
ret
=
consumer
->
enqueue
(
cache_sh_video
->
copy
(),
sample_rate
,
frame_rate
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"dispatch video sequence header failed. ret=%d"
,
ret
);
...
...
请
注册
或
登录
后发表评论