1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

donot mix the read and write for librtmp

This commit is contained in:
winlin 2014-06-29 17:17:50 +08:00
parent 1eee4d25cf
commit a888e52df1
8 changed files with 58 additions and 16 deletions

View file

@ -165,6 +165,11 @@ void SrsFileReader::close()
return;
}
bool SrsFileReader::is_open()
{
return fd > 0;
}
int64_t SrsFileReader::tellg()
{
return (int64_t)::lseek(fd, 0, SEEK_CUR);