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

SRT: Change bridges to bridge.

This commit is contained in:
winlin 2022-06-10 19:52:18 +08:00
parent 077d93c7b6
commit e09daa2d4b
5 changed files with 17 additions and 57 deletions

View file

@ -90,10 +90,10 @@ public:
virtual void wait(int nb_msgs, srs_utime_t timeout);
};
class ISrsSrtSourceBridge : public ISrsBridge
class ISrsSrtSourceBridge
{
public:
ISrsSrtSourceBridge(SrsBridgeDestType type);
ISrsSrtSourceBridge();
virtual ~ISrsSrtSourceBridge();
public:
virtual srs_error_t on_publish() = 0;
@ -179,7 +179,7 @@ private:
// To delivery packets to clients.
std::vector<SrsSrtConsumer*> consumers;
bool can_publish_;
std::vector<ISrsSrtSourceBridge*> bridgers_;
ISrsSrtSourceBridge* bridge_;
};
#endif