mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #179, update the metadata of flv dvr file.
This commit is contained in:
parent
7077b74d03
commit
1445086451
8 changed files with 270 additions and 25 deletions
|
@ -116,6 +116,11 @@ bool SrsFileWriter::is_open()
|
|||
return fd > 0;
|
||||
}
|
||||
|
||||
void SrsFileWriter::lseek(int64_t offset)
|
||||
{
|
||||
::lseek(fd, (off_t)offset, SEEK_SET);
|
||||
}
|
||||
|
||||
int64_t SrsFileWriter::tellg()
|
||||
{
|
||||
return (int64_t)::lseek(fd, 0, SEEK_CUR);
|
||||
|
|
|
@ -54,6 +54,7 @@ public:
|
|||
virtual void close();
|
||||
public:
|
||||
virtual bool is_open();
|
||||
virtual void lseek(int64_t offset);
|
||||
virtual int64_t tellg();
|
||||
public:
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue