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

Remove unused conn from consumer.

This commit is contained in:
winlin 2020-09-11 17:03:48 +08:00
parent 88826aae8f
commit d8a158290f
4 changed files with 8 additions and 12 deletions

View file

@ -51,7 +51,6 @@ class SrsRtmpServer;
class SrsEdgeProxyContext;
class SrsMessageArray;
class SrsNgExec;
class SrsTcpConnection;
class SrsMessageHeader;
class SrsHls;
class SrsRtc;
@ -189,8 +188,6 @@ private:
SrsRtmpJitter* jitter;
SrsSource* source;
SrsMessageQueue* queue;
// The owner connection for debug, maybe NULL.
SrsTcpConnection* conn;
bool paused;
// when source id changed, notice all consumers
bool should_update_source_id;
@ -203,7 +200,7 @@ private:
srs_utime_t mw_duration;
#endif
public:
SrsConsumer(SrsSource* s, SrsTcpConnection* c);
SrsConsumer(SrsSource* s);
virtual ~SrsConsumer();
public:
// Set the size of queue.
@ -599,7 +596,7 @@ public:
public:
// Create consumer
// @param consumer, output the create consumer.
virtual srs_error_t create_consumer(SrsTcpConnection* conn, SrsConsumer*& consumer);
virtual srs_error_t create_consumer(SrsConsumer*& consumer);
// Dumps packets in cache to consumer.
// @param ds, whether dumps the sequence header.
// @param dm, whether dumps the metadata.