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-08-06 13:57:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a9d28122f4027460d2da85511e74a9f075d22af7
a9d28122
1 parent
5b28355a
refine code, refine the handshake, refine the log of source_id
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
8 行增加
和
9 行删除
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/app/srs_app_source.cpp
trunk/src/rtmp/srs_protocol_handshake.cpp
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
a9d2812
...
...
@@ -365,8 +365,9 @@ int SrsRtmpConn::stream_service_cycle()
}
bool
enabled_cache
=
_srs_config
->
get_gop_cache
(
req
->
vhost
);
srs_trace
(
"source url=%s, ip=%s, cache=%d, is_edge=%d, id=%d"
,
req
->
get_stream_url
().
c_str
(),
ip
.
c_str
(),
enabled_cache
,
vhost_is_edge
,
source
->
source_id
());
srs_trace
(
"source url=%s, ip=%s, cache=%d, is_edge=%d, source_id=%d[%d]"
,
req
->
get_stream_url
().
c_str
(),
ip
.
c_str
(),
enabled_cache
,
vhost_is_edge
,
source
->
source_id
(),
source
->
source_id
());
source
->
set_cache
(
enabled_cache
);
switch
(
type
)
{
...
...
trunk/src/app/srs_app_source.cpp
查看文件 @
a9d2812
...
...
@@ -338,7 +338,7 @@ int SrsConsumer::dump_packets(int max_count, SrsSharedPtrMessage** pmsgs, int& c
srs_assert
(
max_count
>
0
);
if
(
should_update_source_id
)
{
srs_trace
(
"update source_id=%d
"
,
source
->
source_id
());
srs_trace
(
"update source_id=%d
[%d]"
,
source
->
source_id
()
,
source
->
source_id
());
should_update_source_id
=
false
;
}
...
...
trunk/src/rtmp/srs_protocol_handshake.cpp
查看文件 @
a9d2812
...
...
@@ -866,17 +866,15 @@ namespace _srs_internal
if
(
schema
==
srs_schema0
)
{
srs_key_block_init
(
&
block0
.
key
);
srs_digest_block_init
(
&
block1
.
digest
);
}
else
{
srs_digest_block_init
(
&
block0
.
digest
);
srs_key_block_init
(
&
block1
.
key
);
}
if
(
schema
==
srs_schema0
)
{
if
((
ret
=
openssl_generate_key
(
c1
->
block0
.
key
.
key
,
block0
.
key
.
key
,
128
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"calc s1 key failed. ret=%d"
,
ret
);
return
ret
;
}
}
else
{
srs_digest_block_init
(
&
block0
.
digest
);
srs_key_block_init
(
&
block1
.
key
);
if
((
ret
=
openssl_generate_key
(
c1
->
block1
.
key
.
key
,
block1
.
key
.
key
,
128
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"calc s1 key failed. ret=%d"
,
ret
);
return
ret
;
...
...
请
注册
或
登录
后发表评论