mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
rename base message to ISrsMessage
This commit is contained in:
parent
52a454c41b
commit
0a0d33335a
2 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,12 @@ SrsSource::SrsSource(std::string _stream_url)
|
|||
|
||||
SrsSource::~SrsSource()
|
||||
{
|
||||
std::vector<SrsConsumer*>::iterator it;
|
||||
for (it = consumers.begin(); it != consumers.end(); ++it) {
|
||||
SrsConsumer* consumer = *it;
|
||||
srs_freep(consumer);
|
||||
}
|
||||
consumers.clear();
|
||||
}
|
||||
|
||||
int SrsSource::on_meta_data(SrsCommonMessage* msg, SrsOnMetaDataPacket* metadata)
|
||||
|
@ -90,6 +96,7 @@ int SrsSource::on_video(SrsCommonMessage* audio)
|
|||
SrsConsumer* SrsSource::create_consumer()
|
||||
{
|
||||
SrsConsumer* consumer = new SrsConsumer();
|
||||
consumers.push_back(consumer);
|
||||
return consumer;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ public:
|
|||
static SrsSource* find(std::string stream_url);
|
||||
private:
|
||||
std::string stream_url;
|
||||
std::vector<SrsConsumer*> consumers;
|
||||
public:
|
||||
SrsSource(std::string _stream_url);
|
||||
virtual ~SrsSource();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue