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

fix #209, cleanup hls when stop and timeout. 2.0.173.

This commit is contained in:
winlin 2015-05-30 14:41:09 +08:00
parent 4a80a5a71e
commit 223ae194b1
4 changed files with 71 additions and 29 deletions

View file

@ -261,7 +261,6 @@ public:
virtual ~SrsHlsMuxer();
public:
virtual void dispose();
virtual int cycle();
public:
virtual int sequence_no();
virtual std::string ts_url();
@ -382,7 +381,11 @@ private:
SrsHlsCache* hls_cache;
ISrsHlsHandler* handler;
private:
SrsRequest* _req;
bool hls_enabled;
bool hls_can_dispose;
int64_t last_update_time;
private:
SrsSource* source;
SrsAvcAacCodec* codec;
SrsCodecSample* sample;