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-04-04 15:35:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b7093246e4f5625c0cc288db9b5b7033de00c4d0
b7093246
1 parent
28b0c3a2
fix forward conf file bug, change pid file. change to 0.9.48
显示空白字符变更
内嵌
并排对比
正在显示
6 个修改的文件
包含
65 行增加
和
54 行删除
trunk/conf/forward.master.conf
trunk/conf/forward.slave.conf
trunk/conf/full.conf
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/core/srs_core.hpp
trunk/conf/forward.master.conf
查看文件 @
b709324
...
...
@@ -3,6 +3,9 @@
# @see full.conf for detail config.
listen
1935
;
pid
./
objs
/
srs
.
master
.
pid
;
srs_log_tank
file
;
srs_log_file
./
objs
/
srs
.
master
.
log
;
vhost
__
defaultVhost__
{
forward
127
.
0
.
0
.
1
:
19350
;
}
...
...
trunk/conf/forward.slave.conf
查看文件 @
b709324
...
...
@@ -3,5 +3,8 @@
# @see full.conf for detail config.
listen
19350
;
pid
./
objs
/
srs
.
slave
.
pid
;
srs_log_tank
file
;
srs_log_file
./
objs
/
srs
.
slave
.
log
;
vhost
__
defaultVhost__
{
}
...
...
trunk/conf/full.conf
查看文件 @
b709324
...
...
@@ -89,6 +89,7 @@ vhost __defaultVhost__ {
gop_cache
on
;
http
{
enabled
on
;
mount
/;
dir
./
objs
/
nginx
/
html
;
}
}
...
...
@@ -100,9 +101,11 @@ vhost http.srs.com {
# whether enable the http streaming service for vhost.
# default: off
enabled
on
;
# the virtual directory root for this vhost to mount at
# for example, if mount to /hls, user access by http://server/hls
mount
/
hls
;
# main dir of vhost,
# to delivery HTTP stream of this vhost.
# default: ./objs/nginx/html;
dir
./
objs
/
nginx
/
html
;
}
}
...
...
trunk/src/app/srs_app_config.cpp
查看文件 @
b709324
...
...
@@ -1266,54 +1266,6 @@ string SrsConfig::get_engine_output(SrsConfDirective* engine)
return
conf
->
arg0
();
}
string
SrsConfig
::
get_ffmpeg_log_dir
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"ff_log_dir"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
"./objs/logs"
;
}
return
conf
->
arg0
();
}
string
SrsConfig
::
get_srs_log_file
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"srs_log_file"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
"./objs/srs.log"
;
}
return
conf
->
arg0
();
}
string
SrsConfig
::
get_srs_log_level
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"srs_log_level"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
"trace"
;
}
return
conf
->
arg0
();
}
bool
SrsConfig
::
get_srs_log_tank_file
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"srs_log_tank"
);
if
(
conf
&&
conf
->
arg0
()
==
"console"
)
{
return
false
;
}
return
true
;
}
bool
SrsConfig
::
get_deamon
()
{
srs_assert
(
root
);
...
...
@@ -1397,6 +1349,54 @@ SrsConfDirective* SrsConfig::get_forward(string vhost)
return
conf
->
get
(
"forward"
);
}
string
SrsConfig
::
get_srs_log_file
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"srs_log_file"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
"./objs/srs.log"
;
}
return
conf
->
arg0
();
}
string
SrsConfig
::
get_ffmpeg_log_dir
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"ff_log_dir"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
"./objs/logs"
;
}
return
conf
->
arg0
();
}
string
SrsConfig
::
get_srs_log_level
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"srs_log_level"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
"trace"
;
}
return
conf
->
arg0
();
}
bool
SrsConfig
::
get_srs_log_tank_file
()
{
srs_assert
(
root
);
SrsConfDirective
*
conf
=
root
->
get
(
"srs_log_tank"
);
if
(
conf
&&
conf
->
arg0
()
==
"console"
)
{
return
false
;
}
return
true
;
}
SrsConfDirective
*
SrsConfig
::
get_hls
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
b709324
...
...
@@ -147,16 +147,18 @@ public:
virtual
int
get_engine_achannels
(
SrsConfDirective
*
engine
);
virtual
void
get_engine_aparams
(
SrsConfDirective
*
engine
,
std
::
vector
<
std
::
string
>&
aparams
);
virtual
std
::
string
get_engine_output
(
SrsConfDirective
*
engine
);
virtual
std
::
string
get_ffmpeg_log_dir
();
virtual
bool
get_srs_log_tank_file
();
virtual
std
::
string
get_srs_log_level
();
virtual
std
::
string
get_srs_log_file
();
virtual
bool
get_deamon
();
virtual
int
get_max_connections
();
virtual
bool
get_gop_cache
(
std
::
string
vhost
);
virtual
bool
get_atc
(
std
::
string
vhost
);
virtual
double
get_queue_length
(
std
::
string
vhost
);
virtual
SrsConfDirective
*
get_forward
(
std
::
string
vhost
);
// log section
public:
virtual
bool
get_srs_log_tank_file
();
virtual
std
::
string
get_srs_log_level
();
virtual
std
::
string
get_srs_log_file
();
virtual
std
::
string
get_ffmpeg_log_dir
();
// hls section
private:
virtual
SrsConfDirective
*
get_hls
(
std
::
string
vhost
);
...
...
trunk/src/core/srs_core.hpp
查看文件 @
b709324
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "4
7
"
#define VERSION_REVISION "4
8
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "srs"
...
...
请
注册
或
登录
后发表评论