mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code:
优化 判断重复推流 及 推流流程
This commit is contained in:
parent
f6a2cea716
commit
2263f2a610
4 changed files with 59 additions and 143 deletions
7
trunk/src/app/srs_app_source.hpp
Normal file → Executable file
7
trunk/src/app/srs_app_source.hpp
Normal file → Executable file
|
@ -550,13 +550,6 @@ private:
|
|||
public:
|
||||
virtual int on_aggregate(SrsCommonMessage* msg);
|
||||
/**
|
||||
* the pre-publish is we are very sure we are
|
||||
* trying to publish stream, please lock the resource,
|
||||
* and we use release_publish() to release the resource.
|
||||
*/
|
||||
virtual int acquire_publish();
|
||||
virtual void release_publish();
|
||||
/**
|
||||
* publish stream event notify.
|
||||
* @param _req the request from client, the source will deep copy it,
|
||||
* for when reload the request of client maybe invalid.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue