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

refine source, rename req to _req

This commit is contained in:
winlin 2014-04-26 17:16:18 +08:00
parent a2f317a113
commit b0951d36d3
5 changed files with 51 additions and 35 deletions

View file

@ -220,7 +220,7 @@ public:
static int find(SrsRequest* req, SrsSource** ppsource);
private:
// deep copy of client request.
SrsRequest* req;
SrsRequest* _req;
// to delivery stream to clients.
std::vector<SrsConsumer*> consumers;
// hls handler.
@ -272,7 +272,7 @@ public:
* @param _req the client request object,
* this object will deep copy it for reload.
*/
SrsSource(SrsRequest* _req);
SrsSource(SrsRequest* req);
virtual ~SrsSource();
public:
virtual int initialize();
@ -302,7 +302,7 @@ public:
* @param _req the request from client, the source will deep copy it,
* for when reload the request of client maybe invalid.
*/
virtual int on_publish(SrsRequest* _req);
virtual int on_publish();
virtual void on_unpublish();
public:
virtual int create_consumer(SrsConsumer*& consumer);