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
wenjie.zhao
2015-03-11 14:34:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
570c0d66bdd255b12e3c3bb202628d742399cc66
570c0d66
1 parent
066158de
fix path issue.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
trunk/src/app/srs_app_hds.cpp
trunk/src/app/srs_app_hds.cpp
查看文件 @
570c0d6
...
...
@@ -152,10 +152,7 @@ public:
data
=
string
(
ss
.
data
(),
ss
.
size
())
+
data
;
char
file_path
[
1024
]
=
{
0
};
sprintf
(
file_path
,
"%s/%s/%sSeg1-Frag%d"
,
_srs_config
->
get_hds_path
(
req
->
vhost
).
c_str
()
,
req
->
app
.
c_str
(),
req
->
stream
.
c_str
(),
index
);
const
char
*
file_path
=
path
.
c_str
();
int
fd
=
open
(
file_path
,
O_WRONLY
|
O_CREAT
,
S_IRWXU
|
S_IRGRP
|
S_IROTH
);
if
(
fd
<
0
)
{
srs_error
(
"open fragment file failed, path=%s"
,
file_path
);
...
...
@@ -203,9 +200,11 @@ public:
*/
inline
void
set_index
(
int
idx
)
{
char
fg_name
[
1024
]
=
{
0
};
sprintf
(
fg_name
,
"/var/www/live/stream0Seg1-Frag%d"
,
idx
);
path
=
fg_name
;
char
file_path
[
1024
]
=
{
0
};
sprintf
(
file_path
,
"%s/%s/%sSeg1-Frag%d"
,
_srs_config
->
get_hds_path
(
req
->
vhost
).
c_str
()
,
req
->
app
.
c_str
(),
req
->
stream
.
c_str
(),
idx
);
path
=
file_path
;
index
=
idx
;
}
...
...
请
注册
或
登录
后发表评论