mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #913, Kernel MP4 FLV HTTP support complex error.
This commit is contained in:
parent
9802dc326e
commit
204ef041da
23 changed files with 1413 additions and 1660 deletions
|
|
@ -44,7 +44,7 @@ public:
|
|||
* Read bytes from reader.
|
||||
* @param nread How many bytes read from channel. NULL to ignore.
|
||||
*/
|
||||
virtual int read(void* buf, size_t size, ssize_t* nread) = 0;
|
||||
virtual srs_error_t read(void* buf, size_t size, ssize_t* nread) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -65,7 +65,7 @@ public:
|
|||
* @param seeked Upon successful completion, lseek() returns the resulting offset location as measured in bytes from
|
||||
* the beginning of the file. NULL to ignore.
|
||||
*/
|
||||
virtual int lseek(off_t offset, int whence, off_t* seeked) = 0;
|
||||
virtual srs_error_t lseek(off_t offset, int whence, off_t* seeked) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -91,7 +91,7 @@ public:
|
|||
* write bytes over writer.
|
||||
* @nwrite the actual written bytes. NULL to ignore.
|
||||
*/
|
||||
virtual int write(void* buf, size_t size, ssize_t* nwrite) = 0;
|
||||
virtual srs_error_t write(void* buf, size_t size, ssize_t* nwrite) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -109,7 +109,7 @@ public:
|
|||
* @remark for the HTTP FLV, to writev to improve performance.
|
||||
* @see https://github.com/ossrs/srs/issues/405
|
||||
*/
|
||||
virtual int writev(const iovec *iov, int iov_size, ssize_t* nwrite) = 0;
|
||||
virtual srs_error_t writev(const iovec *iov, int iov_size, ssize_t* nwrite) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue