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-17 16:10:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
56ff70cdf850ac5bceb113b512e5ef52cf1acf03
56ff70cd
1 parent
271b969d
remove lseek and size of fs stream
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
0 行增加
和
23 行删除
trunk/src/app/srs_app_dvr.cpp
trunk/src/app/srs_app_dvr.hpp
trunk/src/app/srs_app_dvr.cpp
查看文件 @
56ff70c
...
...
@@ -129,17 +129,6 @@ int SrsFileStream::write(void* buf, size_t count, ssize_t* pnwrite)
return
ret
;
}
int64_t
SrsFileStream
::
size
()
{
::
lseek
(
fd
,
0
,
SEEK_SET
);
return
::
lseek
(
fd
,
0
,
SEEK_END
);
}
off_t
SrsFileStream
::
lseek
(
off_t
offset
)
{
return
::
lseek
(
fd
,
offset
,
SEEK_SET
);
}
SrsFlvEncoder
::
SrsFlvEncoder
()
{
_fs
=
NULL
;
...
...
@@ -164,9 +153,6 @@ int SrsFlvEncoder::write_header()
{
int
ret
=
ERROR_SUCCESS
;
// seek to header.
_fs
->
lseek
(
0
);
static
char
flv_header
[]
=
{
'F'
,
'L'
,
'V'
,
// Signatures "FLV"
(
char
)
0x01
,
// File version (for example, 0x01 for FLV version 1)
...
...
trunk/src/app/srs_app_dvr.hpp
查看文件 @
56ff70c
...
...
@@ -60,15 +60,6 @@ public:
* @param pnwrite, return the write size. NULL to ignore.
*/
virtual
int
write
(
void
*
buf
,
size_t
count
,
ssize_t
*
pnwrite
);
public
:
/**
* get size of file.
*/
virtual
int64_t
size
();
/**
* wrapper for system lseek where whence always use SEEK_SET
*/
virtual
off_t
lseek
(
off_t
offset
);
};
/**
...
...
请
注册
或
登录
后发表评论