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-04-29 15:44:53 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
5559fb984246e25ec83623d6789e697499c78723
5559fb98
2 parents
ae6d0a5a
b3bd007f
Merge branch '2.0release' into develop
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
17 行增加
和
3 行删除
trunk/scripts/git.commit.sh
trunk/src/app/srs_app_http_conn.cpp
trunk/scripts/git.commit.sh
查看文件 @
5559fb9
...
...
@@ -41,7 +41,8 @@ function remote_check()
fi
ok_msg
"remote
$remote
ok, url is
$url
"
}
remote_check origin git@github.com:winlinvip/simple-rtmp-server.git
remote_check origin git@github.com:simple-rtmp-server/srs.git
remote_check srs.winlin git@github.com:winlinvip/simple-rtmp-server.git
remote_check srs.csdn git@code.csdn.net:winlinvip/srs-csdn.git
remote_check srs.oschina git@git.oschina.net:winlinvip/srs.oschina.git
remote_check srs.gitlab git@gitlab.com:winlinvip/srs-gitlab.git
...
...
@@ -63,11 +64,13 @@ function sync_push()
}
sync_push --all origin
sync_push --all srs.winlin
sync_push --all srs.csdn
sync_push --all srs.oschina
sync_push --all srs.gitlab
ok_msg
"push refs ok"
sync_push --tags srs.winlin
sync_push --tags srs.csdn
sync_push --tags srs.oschina
sync_push --tags srs.gitlab
...
...
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
5559fb9
...
...
@@ -965,7 +965,7 @@ int SrsHttpServer::hls_update_m3u8(SrsRequest* r, string m3u8)
{
int
ret
=
ERROR_SUCCESS
;
std
::
string
mount
=
m3u8
;
std
::
string
mount
;
std
::
string
sid
=
r
->
get_stream_url
();
SrsHlsEntry
*
entry
=
NULL
;
...
...
@@ -980,8 +980,17 @@ int SrsHttpServer::hls_update_m3u8(SrsRequest* r, string m3u8)
SrsHlsEntry
*
tmpl
=
thls
[
r
->
vhost
];
entry
=
new
SrsHlsEntry
();
entry
->
mount
=
tmpl
->
mount
;
mount
=
tmpl
->
mount
;
// replace the vhost variable
mount
=
srs_string_replace
(
mount
,
"[vhost]"
,
r
->
vhost
);
mount
=
srs_string_replace
(
mount
,
"[app]"
,
r
->
app
);
mount
=
srs_string_replace
(
mount
,
"[stream]"
,
r
->
stream
);
// remove the default vhost mount
mount
=
srs_string_replace
(
mount
,
SRS_CONSTS_RTMP_DEFAULT_VHOST
"/"
,
"/"
);
entry
->
mount
=
mount
;
shls
[
sid
]
=
entry
;
if
(
entry
->
streams
.
find
(
mount
)
==
entry
->
streams
.
end
())
{
...
...
@@ -997,6 +1006,8 @@ int SrsHttpServer::hls_update_m3u8(SrsRequest* r, string m3u8)
entry
=
shls
[
sid
];
}
mount
=
entry
->
mount
;
// update the m3u8 stream.
SrsHlsM3u8Stream
*
hms
=
dynamic_cast
<
SrsHlsM3u8Stream
*>
(
entry
->
streams
[
mount
]);
if
(
hms
)
{
...
...
请
注册
或
登录
后发表评论