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:
parent
b38bae2a89
commit
35ab0ea627
2 changed files with 35 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue