1
0
Fork 0
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:
winlin 2017-12-31 12:11:48 +08:00
parent 9802dc326e
commit 204ef041da
23 changed files with 1413 additions and 1660 deletions

View file

@ -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;
};
/**