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

for #250, use buffer to cache bytes, for system will split the udp packet.

This commit is contained in:
winlin 2015-01-29 23:54:04 +08:00
parent b38bae2a89
commit 35ab0ea627
2 changed files with 35 additions and 5 deletions

View file

@ -36,6 +36,7 @@ class sockaddr_in;
class SrsStream;
class SrsTsContext;
class SrsConfDirective;
class SrsSimpleBuffer;
#ifdef SRS_AUTO_STREAM_CASTER
@ -49,6 +50,7 @@ class SrsMpegtsOverUdp : public ISrsTsHandler
private:
SrsStream* stream;
SrsTsContext* context;
SrsSimpleBuffer* buffer;
std::string output;
public:
SrsMpegtsOverUdp(SrsConfDirective* c);