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

fix the bug: when trying to push same stream more than twice, to play it through http-flv will cause a core dump(#666)

This commit is contained in:
hankun 2016-10-14 16:05:19 +08:00
parent d6fc289c6a
commit 4f09bcce9f
2 changed files with 26 additions and 0 deletions

2
trunk/src/app/srs_app_http_stream.hpp Normal file → Executable file
View file

@ -51,6 +51,7 @@ private:
public:
SrsStreamCache(SrsSource* s, SrsRequest* r);
virtual ~SrsStreamCache();
virtual int update(SrsSource* s, SrsRequest* r);
public:
virtual int start();
virtual int dump_cache(SrsConsumer* consumer, SrsRtmpJitterAlgorithm jitter);
@ -227,6 +228,7 @@ private:
public:
SrsLiveStream(SrsSource* s, SrsRequest* r, SrsStreamCache* c);
virtual ~SrsLiveStream();
virtual int update(SrsSource* s, SrsRequest* r);
public:
virtual int serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r);
private: