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

refine code, the consumer always alive longer than queue recv thread.

This commit is contained in:
winlin 2015-01-07 14:31:42 +08:00
parent 89a3cf9efe
commit a402ca7120
4 changed files with 19 additions and 25 deletions

View file

@ -113,9 +113,9 @@ private:
SrsRtmpServer* rtmp;
// the recv thread error code.
int recv_error_code;
SrsConsumer *_consumer;
SrsConsumer* _consumer;
public:
SrsQueueRecvThread(SrsRtmpServer* rtmp_sdk, int timeout_ms);
SrsQueueRecvThread(SrsConsumer* consumer, SrsRtmpServer* rtmp_sdk, int timeout_ms);
virtual ~SrsQueueRecvThread();
public:
virtual int start();
@ -132,8 +132,6 @@ public:
public:
virtual void on_thread_start();
virtual void on_thread_stop();
public:
virtual void set_consumer(SrsConsumer *consumer);
};
/**