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
2015-05-28 07:03:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e5461d2df96943775549db1567287ef884c3477f
e5461d2d
1 parent
60775485
refine code
隐藏空白字符变更
内嵌
并排对比
正在显示
8 个修改的文件
包含
13 行增加
和
9 行删除
trunk/src/app/srs_app_log.cpp
trunk/src/app/srs_app_log.hpp
trunk/src/app/srs_app_server.cpp
trunk/src/app/srs_app_st.cpp
trunk/src/app/srs_app_st.hpp
trunk/src/kernel/srs_kernel_log.cpp
trunk/src/kernel/srs_kernel_log.hpp
trunk/src/main/srs_main_ingest_hls.cpp
trunk/src/app/srs_app_log.cpp
查看文件 @
e5461d2
...
...
@@ -43,10 +43,13 @@ SrsThreadContext::~SrsThreadContext()
{
}
void
SrsThreadContext
::
generate_id
()
int
SrsThreadContext
::
generate_id
()
{
static
int
id
=
100
;
cache
[
st_thread_self
()]
=
id
++
;
int
gid
=
id
++
;
cache
[
st_thread_self
()]
=
gid
;
return
gid
;
}
int
SrsThreadContext
::
get_id
()
...
...
trunk/src/app/srs_app_log.hpp
查看文件 @
e5461d2
...
...
@@ -51,7 +51,7 @@ public:
SrsThreadContext
();
virtual
~
SrsThreadContext
();
public
:
virtual
void
generate_id
();
virtual
int
generate_id
();
virtual
int
get_id
();
};
...
...
trunk/src/app/srs_app_server.cpp
查看文件 @
e5461d2
...
...
@@ -607,7 +607,7 @@ int SrsServer::initialize_st()
int
ret
=
ERROR_SUCCESS
;
// init st
if
((
ret
=
srs_
init_s
t
())
!=
ERROR_SUCCESS
)
{
if
((
ret
=
srs_
st_ini
t
())
!=
ERROR_SUCCESS
)
{
srs_error
(
"init st failed. ret=%d"
,
ret
);
return
ret
;
}
...
...
trunk/src/app/srs_app_st.cpp
查看文件 @
e5461d2
...
...
@@ -42,7 +42,7 @@ bool srs_st_epoll_is_supported(void)
}
#endif
int
srs_
init_s
t
()
int
srs_
st_ini
t
()
{
int
ret
=
ERROR_SUCCESS
;
...
...
trunk/src/app/srs_app_st.hpp
查看文件 @
e5461d2
...
...
@@ -33,7 +33,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <st.h>
// initialize st, requires epoll.
extern
int
srs_
init_s
t
();
extern
int
srs_
st_ini
t
();
// close the netfd, and close the underlayer fd.
extern
void
srs_close_stfd
(
st_netfd_t
&
stfd
);
...
...
trunk/src/kernel/srs_kernel_log.cpp
查看文件 @
e5461d2
...
...
@@ -66,8 +66,9 @@ ISrsThreadContext::~ISrsThreadContext()
{
}
void
ISrsThreadContext
::
generate_id
()
int
ISrsThreadContext
::
generate_id
()
{
return
0
;
}
int
ISrsThreadContext
::
get_id
()
...
...
trunk/src/kernel/srs_kernel_log.hpp
查看文件 @
e5461d2
...
...
@@ -102,7 +102,7 @@ public:
ISrsThreadContext
();
virtual
~
ISrsThreadContext
();
public
:
virtual
void
generate_id
();
virtual
int
generate_id
();
virtual
int
get_id
();
};
...
...
trunk/src/main/srs_main_ingest_hls.cpp
查看文件 @
e5461d2
...
...
@@ -1378,7 +1378,7 @@ int proxy_hls2rtmp(string hls, string rtmp)
int
ret
=
ERROR_SUCCESS
;
// init st.
if
((
ret
=
srs_
init_s
t
())
!=
ERROR_SUCCESS
)
{
if
((
ret
=
srs_
st_ini
t
())
!=
ERROR_SUCCESS
)
{
srs_error
(
"init st failed. ret=%d"
,
ret
);
return
ret
;
}
...
...
请
注册
或
登录
后发表评论